aboutsummaryrefslogtreecommitdiff
path: root/lib/scope.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-10-16 01:09:16 +0800
committerGitHub <noreply@github.com>2019-10-16 01:09:16 +0800
commit91cae51d8f8a7f06e55dba7d100bbb663448875b (patch)
tree9c5f4ad80ed0dd9ae2e6e2312ad11fd63c92ac09 /lib/scope.js
parent8af2f5fbcf91279db86f71e9a889d69b262370c5 (diff)
downloadtracifyjs-91cae51d8f8a7f06e55dba7d100bbb663448875b.tar.gz
tracifyjs-91cae51d8f8a7f06e55dba7d100bbb663448875b.zip
fix corner case in `evaluate` & `ie8` (#3483)
fixes #3482
Diffstat (limited to 'lib/scope.js')
-rw-r--r--lib/scope.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/scope.js b/lib/scope.js
index 01a67b7d..038dd640 100644
--- a/lib/scope.js
+++ b/lib/scope.js
@@ -216,6 +216,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options) {
node.reference(options);
});
if (old_def.lambda) new_def.lambda = true;
+ if (new_def.undeclared) self.variables.set(name, new_def);
}
});