Skip to content

Commit

Permalink
Update packages/babel-parser/src/parser/expression.js
Browse files Browse the repository at this point in the history
Co-authored-by: Nicol貌 Ribaudo <nicolo.ribaudo@gmail.com>
  • Loading branch information
JLHwung and nicolo-ribaudo committed Nov 4, 2021
1 parent 2cf9110 commit 305b52b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/expression.js
Expand Up @@ -2211,7 +2211,7 @@ export default class ExpressionParser extends LValParser {
// We check if it's valid for it to be a private name when we push it.
const { type, value } = this.state;
let key;
// most un-computed property name is identifier
// most un-computed property names are identifiers
if (tokenIsKeywordOrIdentifier(type)) {
key = this.parseIdentifier(true);
} else {
Expand Down

0 comments on commit 305b52b

Please sign in to comment.