aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-10-15 14:18:12 +0800
committerGitHub <noreply@github.com>2019-10-15 14:18:12 +0800
commitf86f615d836049fbae03271b59a67b8a9ca90ef7 (patch)
tree0aefbd7ca083b19abcd7392f25df053ba469c5b6 /lib
parentd3d1d11926de43fc1ec74ae3a4d24a884d80d91f (diff)
downloadtracifyjs-f86f615d836049fbae03271b59a67b8a9ca90ef7.tar.gz
tracifyjs-f86f615d836049fbae03271b59a67b8a9ca90ef7.zip
fix corner case in `ie8` & `mangle` (#3476)
fixes #3475
Diffstat (limited to 'lib')
-rw-r--r--lib/scope.js2
1 files changed, 1 insertions, 1 deletions
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;
}