Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Nov 24, 2021
1 parent 055f74f commit 8d0ac28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/babel-parser/src/parser/expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -2204,6 +2204,9 @@ export default class ExpressionParser extends LValParser {
return node;
}

// https://tc39.es/ecma262/#prod-PropertyName
// when refExpressionErrors presents, it will parse private name
// and record the position of the first private name
parsePropertyName(
prop: N.ObjectOrClassMember | N.ClassMember | N.TsNamedTypeElementBase,
refExpressionErrors?: ?ExpressionErrors,
Expand Down

0 comments on commit 8d0ac28

Please sign in to comment.