diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-10-03 00:02:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-03 07:02:28 +0800 |
commit | baf4903aa7c36bd614d3547403d6794bf77ab472 (patch) | |
tree | 3dfa234e6adb17920356e82b0abbf03563a50e40 /lib/scope.js | |
parent | 35465d590eda4074fd9df0e640a8c0934e760d9b (diff) | |
download | tracifyjs-baf4903aa7c36bd614d3547403d6794bf77ab472.tar.gz tracifyjs-baf4903aa7c36bd614d3547403d6794bf77ab472.zip |
fix corner cases of `catch` variable inlining (#4169)
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 af888008..27acf20f 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -228,6 +228,7 @@ AST_Toplevel.DEFMETHOD("figure_out_scope", function(options) { } old_def.defun = new_def.scope; old_def.orig.concat(old_def.references).forEach(function(node) { + node.redef = true; node.thedef = new_def; node.reference(options); }); |