Skip to content

Commit

Permalink
Update packages/babel-parser/src/parser/expression.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Nicol貌 Ribaudo <hello@nicr.dev>
  • Loading branch information
JLHwung and nicolo-ribaudo committed Jun 26, 2023
1 parent 682e32d commit 9cb963f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/babel-parser/src/parser/expression.ts
Expand Up @@ -2965,9 +2965,7 @@ export default abstract class ExpressionParser extends LValParser {
node.options = null;
}
if (this.eat(tt.comma)) {
if (!this.hasPlugin("importAssertions")) {
this.expectPlugin("importAttributes");
}
this.expectImportAttributesPlugin();
if (!this.match(tt.parenR)) {
node.options = this.parseMaybeAssignAllowIn();
this.eat(tt.comma);
Expand Down

0 comments on commit 9cb963f

Please sign in to comment.