aboutsummaryrefslogtreecommitdiff
path: root/lib/scope.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-10-03 00:02:28 +0100
committerGitHub <noreply@github.com>2020-10-03 07:02:28 +0800
commitbaf4903aa7c36bd614d3547403d6794bf77ab472 (patch)
tree3dfa234e6adb17920356e82b0abbf03563a50e40 /lib/scope.js
parent35465d590eda4074fd9df0e640a8c0934e760d9b (diff)
downloadtracifyjs-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.js1
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);
});