Skip to content

Commit

Permalink
refactor: remove refExpressionErrors for record/tuple
Browse files Browse the repository at this point in the history
They are always non-ambiguous.
  • Loading branch information
JLHwung committed Nov 4, 2021
1 parent 647ecd4 commit 2efdbf8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/babel-parser/src/parser/expression.js
Expand Up @@ -1119,7 +1119,6 @@ export default class ExpressionParser extends LValParser {
this.state.type === tt.bracketBarL ? tt.bracketBarR : tt.bracketR,
/* canBePattern */ false,
/* isTuple */ true,
refExpressionErrors,
);
}
case tt.bracketL: {
Expand All @@ -1136,7 +1135,6 @@ export default class ExpressionParser extends LValParser {
this.state.type === tt.braceBarL ? tt.braceBarR : tt.braceR,
/* isPattern */ false,
/* isRecord */ true,
refExpressionErrors,
);
}
case tt.braceL: {
Expand Down

0 comments on commit 2efdbf8

Please sign in to comment.