register function declarations anyway as we may not have hit them

This commit is contained in:
Sebastian McKenzie 2015-06-02 17:08:31 +01:00
parent b6c35743e6
commit 556e58a4ab

View File

@ -79,7 +79,6 @@ var collectorVisitor = {
},
BlockScoped(node, parent, scope) {
if (this.isFunctionDeclaration()) return;
if (scope.path === this) scope = scope.parent;
scope.getBlockParent().registerDeclaration(this);
},