fix corner case in evaluate (#5559)

fixes #5558
This commit is contained in:
Alex Lam S.L
2022-07-15 13:36:52 +01:00
committed by GitHub
parent 24443b6764
commit 5792f30175
2 changed files with 27 additions and 0 deletions

View File

@@ -5030,6 +5030,7 @@ Compressor.prototype.compress = function(node) {
if (def.undeclared) return this;
if (def.last_ref !== lhs) return this;
if (def.single_use == "m") return this;
if (this.right.has_side_effects(compressor)) return this;
}
}
var op = this.operator;