From 305b52b7132307b990f818ce2f71991003bf9a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Thu, 4 Nov 2021 13:38:49 -0400 Subject: [PATCH] Update packages/babel-parser/src/parser/expression.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Nicolò Ribaudo --- packages/babel-parser/src/parser/expression.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-parser/src/parser/expression.js b/packages/babel-parser/src/parser/expression.js index a49ed067354b..0edfd25d2011 100644 --- a/packages/babel-parser/src/parser/expression.js +++ b/packages/babel-parser/src/parser/expression.js @@ -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 {