aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 0f9fa6b2..3059c932 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -4747,6 +4747,13 @@ merge(Compressor.prototype, {
}));
}
}
+ } else if (node instanceof AST_UnaryPostfix
+ && node.expression instanceof AST_SymbolRef
+ && indexOf_assign(node.expression.definition(), node) < 0) {
+ return make_node(AST_UnaryPrefix, node, {
+ operator: "+",
+ expression: node.expression
+ });
}
}
if (node instanceof AST_Call) calls_to_drop_args.push(node);