aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-10-14 00:58:04 +0100
committerGitHub <noreply@github.com>2020-10-14 07:58:04 +0800
commit7f35d9cee05528574a24cbdad5593403db07cbf0 (patch)
tree28f965702e1993333ba665c55c3d42d75a4b2bfc /lib
parent9f8106e1d845f66033c3c73e2e3844cf32fd4bb2 (diff)
downloadtracifyjs-7f35d9cee05528574a24cbdad5593403db07cbf0.tar.gz
tracifyjs-7f35d9cee05528574a24cbdad5593403db07cbf0.zip
fix corner case in `reduce_vars` (#4219)
fixes #4218
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js
index b2ed17cf..3e6218a0 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -993,6 +993,7 @@ merge(Compressor.prototype, {
return node.value;
};
d.fixed.assigns = [ node ];
+ if (node.name instanceof AST_SymbolConst && d.redefined()) d.single_use = false;
} else {
d.fixed = false;
}