fix corner case in collapse_vars (#4936)

fixes #4935
This commit is contained in:
Alex Lam S.L
2021-05-15 15:34:14 +01:00
committed by GitHub
parent 2cff7c94e8
commit bbed9b13b1
2 changed files with 26 additions and 0 deletions

View File

@@ -1982,6 +1982,7 @@ merge(Compressor.prototype, {
force_single = true;
continue;
}
if (replaced == assign_pos) assign_used = true;
var def = lhs.definition();
abort = false;
hit_index = 0;