diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-07-20 19:32:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 02:32:20 +0800 |
commit | 61b66e83f1885dd8ad18ff510e38ab601ebf4c5c (patch) | |
tree | c53f90a921c60ae62cec5491c1dc9d45739b0c57 /lib/scope.js | |
parent | a5db8cd14c55aa64cb6e5cfb4f98f87aa38504dd (diff) | |
download | tracifyjs-61b66e83f1885dd8ad18ff510e38ab601ebf4c5c.tar.gz tracifyjs-61b66e83f1885dd8ad18ff510e38ab601ebf4c5c.zip |
fix corner case in `ie8` (#4016)
fixes #4015
Diffstat (limited to 'lib/scope.js')
-rw-r--r-- | lib/scope.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/scope.js b/lib/scope.js index 66314766..3297b8e6 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -230,6 +230,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options) { } else { new_def = scope.def_variable(node); } + old_def.defun = new_def.scope; old_def.orig.concat(old_def.references).forEach(function(node) { node.thedef = new_def; node.reference(options); |