Apply transformer to AST_VarDef's name

Fix #237
This commit is contained in:
Mihai Bazon
2013-07-14 13:24:09 +03:00
parent fc9ba323c4
commit 9243b0cb9d

View File

@@ -159,6 +159,7 @@ TreeTransformer.prototype = new TreeWalker;
}); });
_(AST_VarDef, function(self, tw){ _(AST_VarDef, function(self, tw){
self.name = self.name.transform(tw);
if (self.value) self.value = self.value.transform(tw); if (self.value) self.value = self.value.transform(tw);
}); });