aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index c8f5b267..d439ed4c 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -600,6 +600,7 @@ merge(Compressor.prototype, {
return node.right;
};
} else {
+ if (d.single_use) d.single_use = false;
sym.fixed = d.fixed = function() {
return make_node(AST_Binary, node, {
operator: node.operator.slice(0, -1),
@@ -894,9 +895,9 @@ merge(Compressor.prototype, {
d.assignments++;
var fixed = d.fixed;
if (safe_to_read(tw, d) && safe_to_assign(tw, d)) {
- if (d.single_use) d.single_use = false;
push_ref(d, exp);
mark(tw, d);
+ if (d.single_use) d.single_use = false;
d.fixed = function() {
return make_node(AST_Binary, node, {
operator: node.operator.slice(0, -1),