aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-11-01 22:38:19 +0800
committerGitHub <noreply@github.com>2019-11-01 22:38:19 +0800
commit24bb2888328a4fb01b7cfb49695b0f84e7120aeb (patch)
tree2e2fc6516ed4e3a2632f16e71844d96f2681ae86 /lib/compress.js
parent6ad8e1081f4becc51d1a3a946b3851069918aca8 (diff)
downloadtracifyjs-24bb2888328a4fb01b7cfb49695b0f84e7120aeb.tar.gz
tracifyjs-24bb2888328a4fb01b7cfb49695b0f84e7120aeb.zip
fix corner case in `collapse_vars` (#3563)
fixes #3562
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 0321a532..e3532fef 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -1671,7 +1671,7 @@ merge(Compressor.prototype, {
function symbol_in_lvalues(sym, parent) {
var lvalue = lvalues[sym.name];
if (!lvalue) return;
- if (lvalue !== lhs) return !(parent instanceof AST_Call && parent.expression === sym);
+ if (lvalue !== lhs) return true;
scan_rhs = false;
}