From 78be8f52964ab9d391fedc0dc2cc9315fcb56437 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Wed, 26 Sep 2012 13:04:54 +0300 Subject: compressor successfully moved to TreeTransformer --- lib/transform.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/transform.js') 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){ -- cgit v1.2.3