| Index: src/parsing/preparser.cc
|
| diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc
|
| index 369ff2415efb8dbe3351b73dfb3c818147460c64..8c0c3685bc23011aa40ffb364079a204b2b5d533 100644
|
| --- a/src/parsing/preparser.cc
|
| +++ b/src/parsing/preparser.cc
|
| @@ -1056,13 +1056,12 @@ PreParserExpression PreParser::ParseClassLiteral(
|
| Expect(Token::LBRACE, CHECK_OK);
|
| while (peek() != Token::RBRACE) {
|
| if (Check(Token::SEMICOLON)) continue;
|
| - const bool in_class = true;
|
| bool is_computed_name = false; // Classes do not care about computed
|
| // property names here.
|
| Identifier name;
|
| ExpressionClassifier property_classifier(this);
|
| - ParsePropertyDefinition(&checker, in_class, has_extends, &is_computed_name,
|
| - &has_seen_constructor, &name, CHECK_OK);
|
| + ParseClassPropertyDefinition(&checker, has_extends, &is_computed_name,
|
| + &has_seen_constructor, &name, CHECK_OK);
|
| ValidateExpression(CHECK_OK);
|
| impl()->AccumulateFormalParameterContainmentErrors();
|
| }
|
|
|