compressor successfully moved to TreeTransformer

This commit is contained in:
Mihai Bazon
2012-09-26 13:04:54 +03:00
parent a24e7ee976
commit 78be8f5296
3 changed files with 184 additions and 334 deletions

View File

@@ -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){