minor
This commit is contained in:
@@ -993,7 +993,7 @@ function Compressor(options, false_by_default) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (is_empty(self.alternative)) self.alternative = null;
|
if (is_empty(self.alternative)) self.alternative = null;
|
||||||
var negated = self.condition.negate(compressor);
|
var negated = self.condition.negate(compressor).optimize(compressor);
|
||||||
var negated_is_best = best_of(self.condition, negated) === negated;
|
var negated_is_best = best_of(self.condition, negated) === negated;
|
||||||
if (self.alternative && negated_is_best) {
|
if (self.alternative && negated_is_best) {
|
||||||
negated_is_best = false; // because we already do the switch here.
|
negated_is_best = false; // because we already do the switch here.
|
||||||
@@ -1077,7 +1077,7 @@ function Compressor(options, false_by_default) {
|
|||||||
if (aborts(self.alternative)) {
|
if (aborts(self.alternative)) {
|
||||||
var body = self.body;
|
var body = self.body;
|
||||||
self.body = self.alternative;
|
self.body = self.alternative;
|
||||||
self.condition = negated_is_best ? negated : self.condition.negate(compressor);
|
self.condition = negated_is_best ? negated : self.condition.negate(compressor).optimize(compressor);
|
||||||
self.alternative = null;
|
self.alternative = null;
|
||||||
return make_node(AST_BlockStatement, self, {
|
return make_node(AST_BlockStatement, self, {
|
||||||
body: [ self, body ]
|
body: [ self, body ]
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ ifs_5: {
|
|||||||
if (baz) return;
|
if (baz) return;
|
||||||
if (baa) return;
|
if (baa) return;
|
||||||
a();
|
a();
|
||||||
b()
|
b();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
expect: {
|
expect: {
|
||||||
|
|||||||
Reference in New Issue
Block a user