Skip to content

Commit 63b04a6

Browse files
authored
minor tweaks (#5672)
1 parent 9efa02a commit 63b04a6

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

lib/compress.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11607,11 +11607,15 @@ Compressor.prototype.compress = function(node) {
1160711607
right: right.right,
1160811608
}),
1160911609
});
11610-
left.fixed = function() {
11611-
return assign.right;
11612-
};
11613-
left.fixed.assigns = [ assign ];
11614-
left.definition().references.push(left);
11610+
if (left.fixed) {
11611+
left.fixed = function() {
11612+
return assign.right;
11613+
};
11614+
left.fixed.assigns = [ assign ];
11615+
}
11616+
var def = left.definition();
11617+
def.references.push(left);
11618+
def.replaced++;
1161511619
return assign.optimize(compressor);
1161611620
}
1161711621
}

0 commit comments

Comments
 (0)