From f86f615d836049fbae03271b59a67b8a9ca90ef7 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 15 Oct 2019 14:18:12 +0800 Subject: fix corner case in `ie8` & `mangle` (#3476) fixes #3475 --- lib/scope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/scope.js b/lib/scope.js index 1b570515..bd6cb26a 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -201,7 +201,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options) { } if (node instanceof AST_SymbolLambda) { var def = node.thedef; - redefine(node, node.scope.parent_scope); + redefine(node, node.scope.parent_scope.resolve()); node.thedef.init = def.init; return true; } -- cgit v1.2.3