aboutsummaryrefslogtreecommitdiff
path: root/lib/transform.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/transform.js')
-rw-r--r--lib/transform.js4
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){