From 77557337160056ff789fd1a217e8169b11ac1665 Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Mon, 27 Feb 2017 05:30:18 +0800 Subject: [PATCH] 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 --- lib/scope.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/scope.js b/lib/scope.js index 7db670d5..9b1a9daf 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -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;