change ClassExpression visitor to enter instead of exist in the es6.classes transformer

This commit is contained in:
Sebastian McKenzie 2015-05-08 23:10:02 +01:00
parent 590a165776
commit b02a1112bc

View File

@ -17,11 +17,9 @@ export function ClassDeclaration(node, parent, scope, file) {
]);
}
export var ClassExpression = {
exit(node, parent, scope, file) {
return new ClassTransformer(this, file).run();
}
};
export function ClassExpression(node, parent, scope, file) {
return new ClassTransformer(this, file).run();
}
var collectPropertyReferencesVisitor = {
Identifier: {