We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9efa02a commit 63b04a6Copy full SHA for 63b04a6
lib/compress.js
@@ -11607,11 +11607,15 @@ Compressor.prototype.compress = function(node) {
11607
right: right.right,
11608
}),
11609
});
11610
- left.fixed = function() {
11611
- return assign.right;
11612
- };
11613
- left.fixed.assigns = [ assign ];
11614
- left.definition().references.push(left);
+ if (left.fixed) {
+ left.fixed = function() {
+ return assign.right;
+ };
+ left.fixed.assigns = [ assign ];
11615
+ }
11616
+ var def = left.definition();
11617
+ def.references.push(left);
11618
+ def.replaced++;
11619
return assign.optimize(compressor);
11620
}
11621
0 commit comments