| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index dff7de9e6b25c9c9370c866ab5bd4f52646852a6..7e1dc74f05f35c1fbd4b9e2ee91067893ef514f5 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -3808,6 +3808,8 @@ ClassLiteral* Parser::ParseClassLiteral(const AstRawString* name,
|
| block_scope->set_start_position(scanner()->location().end_pos);
|
| }
|
|
|
| +
|
| + ClassLiteralChecker checker(this);
|
| ZoneList<ObjectLiteral::Property*>* properties = NewPropertyList(4, zone());
|
| FunctionLiteral* constructor = NULL;
|
| bool has_seen_constructor = false;
|
| @@ -3820,9 +3822,9 @@ ClassLiteral* Parser::ParseClassLiteral(const AstRawString* name,
|
| const bool is_static = false;
|
| bool is_computed_name = false; // Classes do not care about computed
|
| // property names here.
|
| - ObjectLiteral::Property* property =
|
| - ParsePropertyDefinition(NULL, in_class, is_static, &is_computed_name,
|
| - &has_seen_constructor, CHECK_OK);
|
| + ObjectLiteral::Property* property = ParsePropertyDefinition(
|
| + &checker, in_class, is_static, &is_computed_name, &has_seen_constructor,
|
| + CHECK_OK);
|
|
|
| if (has_seen_constructor && constructor == NULL) {
|
| constructor = GetPropertyValue(property)->AsFunctionLiteral();
|
|
|