From 556e58a4ab1050bfb91922db1d65b91480ad4826 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 2 Jun 2015 17:08:31 +0100 Subject: [PATCH] register function declarations anyway as we may not have hit them --- src/babel/traversal/scope/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/babel/traversal/scope/index.js b/src/babel/traversal/scope/index.js index ff7efbec24..818a1469e1 100644 --- a/src/babel/traversal/scope/index.js +++ b/src/babel/traversal/scope/index.js @@ -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); },