fix "Starting destructuring."

commit 32f76f7ff does not take into account `AST_SymbolFunarg` is also `AST_SymbolVar`, so don't need to call `AST_Scope.def_variable()` twice
This commit is contained in:
alexlamsl
2017-02-27 05:30:18 +08:00
parent b3a987b0df
commit 7755733716

View File

@@ -165,7 +165,6 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options){
}
if (node instanceof AST_SymbolFunarg) {
node.object_destructuring_arg = !!in_destructuring;
defun.def_variable(node, in_export);
}
if (node instanceof AST_Label) {
node.thedef = node;