Track depths on deduped children

Fixes a very specific error case where deduped children won’t receive the depths object due to it being omitted by the caller when optimizing.

Fixes #926
This commit is contained in:
kpdecker
2014-12-16 17:58:26 -06:00
parent 69b1bdd32e
commit 59e80c5103
2 changed files with 20 additions and 1 deletions
@@ -696,6 +696,8 @@ JavaScriptCompiler.prototype = {
} else {
child.index = index;
child.name = 'program' + index;
this.useDepths = this.useDepths || child.depths.list.length;
}
}
},