fix bug (forgot arg name)

This commit is contained in:
Mihai Bazon
2012-09-07 16:02:08 +03:00
parent 919b2733ab
commit 048d6906ae

View File

@@ -423,7 +423,7 @@ function Compressor(options, false_by_default) {
self.second = self.second.negate(compressor);
return self;
});
def(AST_Conditional, function(){
def(AST_Conditional, function(compressor){
var self = this.clone();
self.consequent = self.consequent.negate(compressor);
self.alternative = self.alternative.negate(compressor);
@@ -703,7 +703,7 @@ function Compressor(options, false_by_default) {
&& self.alternative instanceof AST_EmptyStatement) {
return make_node(AST_SimpleStatement, self.condition, {
body: self.condition
});
}).optimize(compressor);
}
if (self.body instanceof AST_SimpleStatement
&& self.alternative instanceof AST_SimpleStatement) {