diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-09-07 16:02:08 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-09-07 16:02:08 +0300 |
commit | 048d6906ae6f43b60cfb0c025c242743f6d2c16f (patch) | |
tree | acf0ed2a67e2efae2706725feb29b60a4a56023a /lib | |
parent | 919b2733ab52d3072bb4276210fe442bc0ade5fd (diff) | |
download | tracifyjs-048d6906ae6f43b60cfb0c025c242743f6d2c16f.tar.gz tracifyjs-048d6906ae6f43b60cfb0c025c242743f6d2c16f.zip |
fix bug (forgot arg name)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compress.js b/lib/compress.js index ea0218ed..953fd901 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -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) { |