fix corner case in hoist_vars (#5196)

fixes #5195
This commit is contained in:
Alex Lam S.L
2021-11-24 20:49:38 +00:00
committed by GitHub
parent 0b6c185818
commit 1b4bd7082b
2 changed files with 64 additions and 11 deletions

View File

@@ -9102,6 +9102,7 @@ merge(Compressor.prototype, {
});
def.references.push(name);
}
def.assignments++;
def.eliminated++;
def.single_use = false;
return a;