Skip to content

Commit

Permalink
Update packages/babel-parser/src/plugins/flow/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
  • Loading branch information
JLHwung and fedeci committed May 19, 2021
1 parent 9590768 commit ace673c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-parser/src/plugins/flow/index.js
Expand Up @@ -2667,7 +2667,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
// parse import-type/typeof shorthand
parseImportSpecifier(node: N.ImportDeclaration): void {
const specifier = this.startNode();
const fistIdentIsString = this.match(tt.string);
const firstIdentIsString = this.match(tt.string);
const firstIdent = this.parseModuleExportName();

let specifierTypeKind = null;
Expand Down Expand Up @@ -2711,7 +2711,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
specifier.local = specifier.imported.__clone();
}
} else {
if (fistIdentIsString) {
if (firstIdentIsString) {
/*:: invariant(firstIdent instanceof N.StringLiteral) */
throw this.raise(
specifier.start,
Expand Down

0 comments on commit ace673c

Please sign in to comment.