From a61fa147bbd4a6c67c3fefd8cdaab9d82111c795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Wed, 24 Jul 2019 10:31:24 -0400 Subject: [PATCH] fix: do not declare name for declare function until we figure out a better way --- packages/babel-parser/src/plugins/flow.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/babel-parser/src/plugins/flow.js b/packages/babel-parser/src/plugins/flow.js index 4a9bdf297987..e1a9e72a291c 100644 --- a/packages/babel-parser/src/plugins/flow.js +++ b/packages/babel-parser/src/plugins/flow.js @@ -194,7 +194,6 @@ export default (superClass: Class): Class => this.next(); const id = (node.id = this.parseIdentifier()); - this.scope.declareName(node.id.name, BIND_VAR, node.id.start); const typeNode = this.startNode(); const typeContainer = this.startNode();