fix corner case in collapse_vars (#3563)

fixes #3562
This commit is contained in:
Alex Lam S.L
2019-11-01 22:38:19 +08:00
committed by GitHub
parent 6ad8e1081f
commit 24bb288832
2 changed files with 40 additions and 1 deletions

View File

@@ -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;
}