| Index: src/preparser.cc
|
| diff --git a/src/preparser.cc b/src/preparser.cc
|
| index b5526767539e0795533024198516ddb6dc8af760..4d621c2dd9004c0a2b3434a8be2e561b42cfc1ee 100644
|
| --- a/src/preparser.cc
|
| +++ b/src/preparser.cc
|
| @@ -990,8 +990,10 @@ PreParserExpression PreParser::ParseClassLiteral(
|
| if (Check(Token::SEMICOLON)) continue;
|
| const bool in_class = true;
|
| const bool is_static = false;
|
| - ParsePropertyDefinition(NULL, in_class, is_static, &has_seen_constructor,
|
| - CHECK_OK);
|
| + bool is_computed_name = false; // Classes do not care about computed
|
| + // property names here.
|
| + ParsePropertyDefinition(NULL, in_class, is_static, &is_computed_name,
|
| + &has_seen_constructor, CHECK_OK);
|
| }
|
|
|
| Expect(Token::RBRACE, CHECK_OK);
|
|
|