avoid evaluate of compound assignment after dead_code transform (#2861)
fixes #2860
This commit is contained in:
@@ -5358,6 +5358,7 @@ merge(Compressor.prototype, {
|
||||
if (in_try(level, parent instanceof AST_Throw)) break;
|
||||
if (is_reachable(def.scope, [ def ])) break;
|
||||
if (self.operator == "=") return self.right;
|
||||
def.fixed = false;
|
||||
return make_node(AST_Binary, self, {
|
||||
operator: self.operator.slice(0, -1),
|
||||
left: self.left,
|
||||
|
||||
Reference in New Issue
Block a user