fix corner case in collapse_vars (#3574)

fixes #3573
This commit is contained in:
Alex Lam S.L
2019-11-07 20:38:03 +08:00
committed by GitHub
parent 61a0dad9fe
commit 87e67ec299
2 changed files with 34 additions and 0 deletions

View File

@@ -1283,6 +1283,7 @@ merge(Compressor.prototype, {
}
branch.expression = branch.expression.transform(scanner);
if (!replace_all) break;
scan_rhs = false;
}
}
abort = true;