diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-09-22 13:32:32 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-09-22 19:41:09 +0300 |
commit | 76d88b59dcd28b836b2cdaf7908bfd5acaa88ebc (patch) | |
tree | 5563cc2b5242fdd5a19f988eed9704711bfa9074 /lib/compress.js | |
parent | ec7f895b54924e90e17d828cfd7db4c62830f93d (diff) | |
download | tracifyjs-76d88b59dcd28b836b2cdaf7908bfd5acaa88ebc.tar.gz tracifyjs-76d88b59dcd28b836b2cdaf7908bfd5acaa88ebc.zip |
tree transformer api (WIP)
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/compress.js b/lib/compress.js index 5b0e06a0..6813925e 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1014,6 +1014,7 @@ function Compressor(options, false_by_default) { self = self.clone(); self.expression = self.expression.squeeze(compressor); self.body = self.body.squeeze(compressor); + return self; }); SQUEEZE(AST_Exit, function(self, compressor){ @@ -1569,13 +1570,6 @@ function Compressor(options, false_by_default) { return self; }); - SQUEEZE(AST_Assign, function(self, compressor){ - self = self.clone(); - self.left = self.left.squeeze(compressor); - self.right = self.right.squeeze(compressor); - return self.optimize(compressor); - }); - SQUEEZE(AST_SymbolRef, function(self, compressor){ return self.optimize(compressor); }); |