fix deep cloning of labels (#1565)
authorAlex Lam S.L <alexlamsl@gmail.com>
Tue, 7 Mar 2017 10:38:27 +0000 (18:38 +0800)
committerGitHub <noreply@github.com>
Tue, 7 Mar 2017 10:38:27 +0000 (18:38 +0800)
commit8a8a94a596f57981e2cc65ac37921b154a9992b7
treee5c9557bb57e12a2c3155fb0ab3d7ed0e3105c7a
parent8153b7bd8a70ad94666904bd41f12ebd6be684c8
fix deep cloning of labels (#1565)

`AST_Label.references` get `.initialize()` to `[]` every time after `.clone()`

So walk down the tree to pick up the cloned `AST_LoopControl` pieces and put it back together.
lib/ast.js
test/compress/reduce_vars.js