Skip to content

Commit

Permalink
adapt to startNodeAt usage
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Oct 18, 2022
1 parent 0f4740b commit 033ae7d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/babel-parser/src/parser/expression.ts
Expand Up @@ -3146,10 +3146,7 @@ export default abstract class ExpressionParser extends LValParser {
this.unexpected(null, tt.braceL);
}
// start program node immediately after `{`
const program = this.startNodeAt<N.Program>(
this.state.end,
this.state.endLoc,
);
const program = this.startNodeAt<N.Program>(this.state.endLoc);
this.next(); // eat `{`

const revertScopes = this.initializeScopes(/** inModule */ true);
Expand Down

0 comments on commit 033ae7d

Please sign in to comment.