diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-10-16 06:37:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-16 06:37:40 +0800 |
commit | 8ff9a3c8fb89ac40fea0dd1cd249e8b94a690c2e (patch) | |
tree | 3df4e52f16431d13fc2a81f8c45ba5d7ac1820bd /lib/scope.js | |
parent | 91cae51d8f8a7f06e55dba7d100bbb663448875b (diff) | |
download | tracifyjs-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.js | 2 |
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; } })); |