don't stop block variable scope finding on first hit

This commit is contained in:
Sebastian McKenzie
2015-01-28 14:39:46 +11:00
parent f0986fe9c7
commit 117203010a

View File

@@ -170,9 +170,8 @@ var blockVariableVisitor = {
enter: function (node, parent, scope, context, add) {
if (t.isBlockScoped(node)) {
add(node, false, true);
context.stop();
} else if (t.isScope(node)) {
context.skip();
context.stop();
}
}
};