From f4919e3a251b4a3beaba66f2a143f795f358409e Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Wed, 6 Nov 2013 10:18:28 +0200 Subject: [PATCH] Do not lift sequence from right-hand side of binary operation. Fix #343 --- lib/compress.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/compress.js b/lib/compress.js index 0bbd24ee..59caa15c 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1875,16 +1875,6 @@ merge(Compressor.prototype, { seq = AST_Seq.from_array(x).transform(compressor); return seq; } - if (this.right instanceof AST_Seq - && !(this.operator == "||" || this.operator == "&&") - && !this.left.has_side_effects(compressor)) { - var seq = this.right; - var x = seq.to_array(); - this.right = x.pop(); - x.push(this); - seq = AST_Seq.from_array(x).transform(compressor); - return seq; - } } return this; });