diff options
author | Mihai Bazon <mihai@bazon.net> | 2013-11-06 10:18:28 +0200 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2013-11-06 10:18:28 +0200 |
commit | f4919e3a251b4a3beaba66f2a143f795f358409e (patch) | |
tree | c1b70e5d99b6c1c9ca9d03e4618ea824ec56277f | |
parent | bb700daa4c48e4fa7ef2258354df8789fbc8e849 (diff) | |
download | tracifyjs-f4919e3a251b4a3beaba66f2a143f795f358409e.tar.gz tracifyjs-f4919e3a251b4a3beaba66f2a143f795f358409e.zip |
Do not lift sequence from right-hand side of binary operation. Fix #343
-rw-r--r-- | lib/compress.js | 10 |
1 files changed, 0 insertions, 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; }); |