| Index: src/preparser.cc
|
| diff --git a/src/preparser.cc b/src/preparser.cc
|
| index 4d621c2dd9004c0a2b3434a8be2e561b42cfc1ee..2a929e3768d2a926cfa3bb3fa4cdee317393a871 100644
|
| --- a/src/preparser.cc
|
| +++ b/src/preparser.cc
|
| @@ -983,6 +983,7 @@ PreParserExpression PreParser::ParseClassLiteral(
|
| ParseLeftHandSideExpression(CHECK_OK);
|
| }
|
|
|
| + ObjectLiteralChecker checker(this, true);
|
| bool has_seen_constructor = false;
|
|
|
| Expect(Token::LBRACE, CHECK_OK);
|
| @@ -992,7 +993,7 @@ PreParserExpression PreParser::ParseClassLiteral(
|
| const bool is_static = false;
|
| bool is_computed_name = false; // Classes do not care about computed
|
| // property names here.
|
| - ParsePropertyDefinition(NULL, in_class, is_static, &is_computed_name,
|
| + ParsePropertyDefinition(&checker, in_class, is_static, &is_computed_name,
|
| &has_seen_constructor, CHECK_OK);
|
| }
|
|
|
|
|