aboutsummaryrefslogtreecommitdiff
path: root/lib/scope.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-10-16 06:37:40 +0800
committerGitHub <noreply@github.com>2019-10-16 06:37:40 +0800
commit8ff9a3c8fb89ac40fea0dd1cd249e8b94a690c2e (patch)
tree3df4e52f16431d13fc2a81f8c45ba5d7ac1820bd /lib/scope.js
parent91cae51d8f8a7f06e55dba7d100bbb663448875b (diff)
downloadtracifyjs-8ff9a3c8fb89ac40fea0dd1cd249e8b94a690c2e.tar.gz
tracifyjs-8ff9a3c8fb89ac40fea0dd1cd249e8b94a690c2e.zip
fix corner cases in `ie8` (#3485)
fixes #3484
Diffstat (limited to 'lib/scope.js')
-rw-r--r--lib/scope.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scope.js b/lib/scope.js
index 038dd640..b40807fa 100644
--- a/lib/scope.js
+++ b/lib/scope.js
@@ -202,7 +202,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options) {
if (node instanceof AST_SymbolLambda) {
var def = node.thedef;
redefine(node, node.scope.parent_scope.resolve());
- node.thedef.init = def.init;
+ if (def.init) node.thedef.init = def.init;
return true;
}
}));