Walk into class body as well if it exists (normally undefined).

This commit is contained in:
Ondřej Španěl 2017-03-06 14:31:20 +01:00
parent 3c2b3aeddb
commit 1465f1b998

View File

@ -1070,6 +1070,9 @@ var AST_Class = DEFNODE("Class", "name extends properties", {
if (this.extends) {
this.extends._walk(visitor);
}
if (this.body) {
walk_body(this, visitor)
}
this.properties.forEach(function(prop){
prop._walk(visitor);
});