diff --git a/lib/compress.js b/lib/compress.js index b50e7cf0..a9e1da37 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -479,7 +479,7 @@ merge(Compressor.prototype, { }; function sequencesize(statements, compressor) { - if (statements.length < 2 || statements.length > 2000) return statements; + if (statements.length < 2) return statements; var seq = [], ret = []; function push_seq() { seq = AST_Seq.from_array(seq); @@ -489,7 +489,7 @@ merge(Compressor.prototype, { seq = []; }; statements.forEach(function(stat){ - if (stat instanceof AST_SimpleStatement) seq.push(stat.body); + if (stat instanceof AST_SimpleStatement && seq.length < 2000) seq.push(stat.body); else push_seq(), ret.push(stat); }); push_seq();