diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compress.js b/lib/compress.js index 686a8d42..52c79a73 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -6720,8 +6720,8 @@ merge(Compressor.prototype, { self.right = self.right.left; } } - if ((self.operator == "+=" || self.operator == "-=") - && self.left.is_number(compressor) + if ((self.operator == "-=" || self.operator == "+=" + && (self.left.is_boolean(compressor) || self.left.is_number(compressor))) && self.right instanceof AST_Number && self.right.getValue() === 1) { var op = self.operator.slice(0, -1); |