Skip to content

Commit

Permalink
refactor: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jun 1, 2021
1 parent 752602e commit 39a0c52
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/babel-parser/src/parser/statement.js
Expand Up @@ -2247,7 +2247,7 @@ export default class StatementParser extends ExpressionParser {
const attrNames = new Set();

do {
if (this.match(tt.braceR)) {
if (this.eat(tt.braceR)) {
break;
}

Expand Down Expand Up @@ -2349,10 +2349,7 @@ export default class StatementParser extends ExpressionParser {
}
// https://tc39.es/proposal-import-assertions/#prod-AssertClause
this.eat(tt.braceL);
const attrs = this.parseAssertEntries();
this.eat(tt.braceR);

return attrs;
return this.parseAssertEntries();
}

maybeParseDefaultImportSpecifier(node: N.ImportDeclaration): boolean {
Expand Down

0 comments on commit 39a0c52

Please sign in to comment.