aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/compress.js b/lib/compress.js
index a6f5d20b..65768c02 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -2862,10 +2862,10 @@ merge(Compressor.prototype, {
case "+": return +v;
case "++":
case "--":
- if (e instanceof AST_SymbolRef) {
- var refs = e.definition().references;
- if (refs[refs.length - 1] === e) return v;
- }
+ if (!(e instanceof AST_SymbolRef)) return this;
+ var refs = e.definition().references;
+ if (refs[refs.length - 1] !== e) return this;
+ return HOP(e, "_eval") ? +(this.operator[0] + 1) + +v : v;
}
return this;
});