Merge 1aade735d0 into eb55d8a9bb
This commit is contained in:
commit
9beed3f03e
|
|
@ -2670,9 +2670,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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user