diff options
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/compress.js b/lib/compress.js index 343edc46..54873f0d 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -2258,10 +2258,11 @@ merge(Compressor.prototype, { } } } - // x * (y * z) ==> x * y * z + // x && (y && z) ==> x && y && z + // x || (y || z) ==> x || y || z if (self.right instanceof AST_Binary && self.right.operator == self.operator - && (self.operator == "*" || self.operator == "&&" || self.operator == "||")) + && (self.operator == "&&" || self.operator == "||")) { self.left = make_node(AST_Binary, self.left, { operator : self.operator, |