reduce overlap of sequences & side_effects (#5344)
This commit is contained in:
@@ -3637,9 +3637,7 @@ Compressor.prototype.compress = function(node) {
|
||||
var stat = statements[i];
|
||||
if (stat instanceof AST_SimpleStatement) {
|
||||
if (seq.length >= compressor.sequences_limit) push_seq();
|
||||
var body = stat.body;
|
||||
if (seq.length > 0) body = body.drop_side_effect_free(compressor);
|
||||
if (body) merge_sequence(seq, body);
|
||||
merge_sequence(seq, stat.body);
|
||||
} else if (is_declaration(stat)) {
|
||||
statements[n++] = stat;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user