diff --git a/lib/compress.js b/lib/compress.js index 5879b93b..ee55faa4 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -2592,9 +2592,10 @@ merge(Compressor.prototype, { } // 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 == "||")) + if (self instanceof AST_Binary + && self.right instanceof AST_Binary + && self.right.operator === self.operator + && (self.operator === "&&" || self.operator === "||")) { self.left = make_node(AST_Binary, self.left, { operator : self.operator,