fix bug (forgot arg name)
This commit is contained in:
@@ -423,7 +423,7 @@ function Compressor(options, false_by_default) {
|
|||||||
self.second = self.second.negate(compressor);
|
self.second = self.second.negate(compressor);
|
||||||
return self;
|
return self;
|
||||||
});
|
});
|
||||||
def(AST_Conditional, function(){
|
def(AST_Conditional, function(compressor){
|
||||||
var self = this.clone();
|
var self = this.clone();
|
||||||
self.consequent = self.consequent.negate(compressor);
|
self.consequent = self.consequent.negate(compressor);
|
||||||
self.alternative = self.alternative.negate(compressor);
|
self.alternative = self.alternative.negate(compressor);
|
||||||
@@ -703,7 +703,7 @@ function Compressor(options, false_by_default) {
|
|||||||
&& self.alternative instanceof AST_EmptyStatement) {
|
&& self.alternative instanceof AST_EmptyStatement) {
|
||||||
return make_node(AST_SimpleStatement, self.condition, {
|
return make_node(AST_SimpleStatement, self.condition, {
|
||||||
body: self.condition
|
body: self.condition
|
||||||
});
|
}).optimize(compressor);
|
||||||
}
|
}
|
||||||
if (self.body instanceof AST_SimpleStatement
|
if (self.body instanceof AST_SimpleStatement
|
||||||
&& self.alternative instanceof AST_SimpleStatement) {
|
&& self.alternative instanceof AST_SimpleStatement) {
|
||||||
|
|||||||
Reference in New Issue
Block a user