Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jul 29, 2020
1 parent 4af6c9a commit 02fe9a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/babel-parser/src/parser/expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -1055,16 +1055,16 @@ export default class ExpressionParser extends LValParser {
case tt.bracketHashL: {
return this.parseArrayLike(
this.state.type === tt.bracketBarL ? tt.bracketBarR : tt.bracketR,
/* isTuple */ true,
/* canBePattern */ false,
/* isTuple */ true,
refExpressionErrors,
);
}
case tt.bracketL: {
return this.parseArrayLike(
tt.bracketR,
/* isTuple */ false,
/* canBePattern */ true,
/* isTuple */ false,
refExpressionErrors,
);
}
Expand Down Expand Up @@ -1999,8 +1999,8 @@ export default class ExpressionParser extends LValParser {
// https://tc39.es/proposal-record-tuple/#prod-TupleLiteral
parseArrayLike(
close: TokenType,
isTuple: boolean,
canBePattern: boolean,
isTuple: boolean,
refExpressionErrors: ?ExpressionErrors,
): N.ArrayExpression | N.TupleExpression {
if (isTuple) {
Expand Down

0 comments on commit 02fe9a7

Please sign in to comment.