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 Jan 11, 2020
1 parent e2b9d15 commit 43907aa
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 @@ -1141,7 +1141,7 @@ export default class ExpressionParser extends LValParser {
if (!isPrivateNameAllowed) {
this.raise(
this.state.pos,
"Private name can only be used as name of class element (i.e. class C { #p = 42 #m() {} } )\n or property of member expression (i.e. this.#p).",
"Private name can only be used as name of class element (i.e. class C { #p = 42; #m() {} } )\n or property of member expression (i.e. this.#p).",
);
}
const node = this.startNode();
Expand Down

0 comments on commit 43907aa

Please sign in to comment.