fix unused on AST_Destructuring (#2146)

This commit is contained in:
Alex Lam S.L
2017-06-23 13:11:26 +08:00
committed by GitHub
parent b163b13a0b
commit 137e4c4753
3 changed files with 23 additions and 44 deletions

View File

@@ -132,7 +132,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options){
scope = save_scope;
return true;
}
if (node instanceof AST_Destructuring && node.is_array === false) {
if (node instanceof AST_Destructuring) {
in_destructuring = node; // These don't nest
descend();
in_destructuring = null;