run es6.spec.blockScoping transformer on exit rather than enter

This commit is contained in:
Sebastian McKenzie 2015-05-08 00:22:23 +01:00
parent 13a6c69668
commit 6e8ab16b25

View File

@ -31,14 +31,16 @@ export var metadata = {
optional: true
};
export function BlockStatement(node, parent, scope, file) {
var letRefs = node._letReferences;
if (!letRefs) return;
export var BlockStatement = {
exit(node, parent, scope, file) {
var letRefs = node._letReferences;
if (!letRefs) return;
this.traverse(visitor, {
letRefs: letRefs,
file: file
});
}
this.traverse(visitor, {
letRefs: letRefs,
file: file
});
}
};
export { BlockStatement as Program, BlockStatement as Loop };