Skip to content

Commit

Permalink
fix: do not declare name for declare function until we figure out a b…
Browse files Browse the repository at this point in the history
…etter way
  • Loading branch information
JLHwung committed Jul 24, 2019
1 parent ccc3975 commit a61fa14
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/babel-parser/src/plugins/flow.js
Expand Up @@ -194,7 +194,6 @@ export default (superClass: Class<Parser>): Class<Parser> =>
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();
Expand Down

0 comments on commit a61fa14

Please sign in to comment.