remove scope from generator visitor

This commit is contained in:
Sebastian McKenzie
2014-11-20 21:18:21 +11:00
parent 931b68dc5d
commit db97f665ed

View File

@@ -31,8 +31,8 @@ var visitor = function (path, file) {
// Calling this.traverse(path) first makes for a post-order traversal.
this.traverse(path);
var node = path.value;
var scope = new Scope(node);
var node = path.value;
var scope; // we need to actually get the current scope
if (!node.generator && !node.async) {
return;