From: Mihai Bazon Date: Wed, 6 Nov 2013 08:18:28 +0000 (+0200) Subject: Do not lift sequence from right-hand side of binary operation. Fix #343 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f4919e3a251b4a3beaba66f2a143f795f358409e;p=UglifyJS.git Do not lift sequence from right-hand side of binary operation. Fix #343 --- 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; });