diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-09-26 13:04:54 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-09-26 14:27:01 +0300 |
commit | 78be8f52964ab9d391fedc0dc2cc9315fcb56437 (patch) | |
tree | 5c68e3aec059d79e8be8c577e92e2340fe62d248 /lib/transform.js | |
parent | a24e7ee976787915c4d8f232bc980174674edb0b (diff) | |
download | tracifyjs-78be8f52964ab9d391fedc0dc2cc9315fcb56437.tar.gz tracifyjs-78be8f52964ab9d391fedc0dc2cc9315fcb56437.zip |
compressor successfully moved to TreeTransformer
Diffstat (limited to 'lib/transform.js')
-rw-r--r-- | lib/transform.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/transform.js b/lib/transform.js index 6f89679d..0d15e63f 100644 --- a/lib/transform.js +++ b/lib/transform.js @@ -65,7 +65,7 @@ TreeTransformer.prototype = new TreeWalker; } else { x = this.clone(); descend(x, tw); - y = tw.after(this, in_list); + y = tw.after(x, in_list); if (y !== undefined) x = y; } } @@ -148,6 +148,8 @@ TreeTransformer.prototype = new TreeWalker; _(AST_Try, function(self, tw){ self.body = do_list(self.body, tw); + if (self.bcatch) self.bcatch = self.bcatch.transform(tw); + if (self.bfinally) self.bfinally = self.bfinally.transform(tw); }); _(AST_Catch, function(self, tw){ |