| Index: src/preparser.cc
|
| diff --git a/src/preparser.cc b/src/preparser.cc
|
| index 4d621c2dd9004c0a2b3434a8be2e561b42cfc1ee..ede3e0a35c1bbc0c3a0e417db4ed5fc6f3e76629 100644
|
| --- a/src/preparser.cc
|
| +++ b/src/preparser.cc
|
| @@ -979,8 +979,10 @@ PreParserExpression PreParser::ParseClassLiteral(
|
| scope_->SetStrictMode(STRICT);
|
| scope_->SetScopeName(name);
|
|
|
| + bool has_extends = false;
|
| if (Check(Token::EXTENDS)) {
|
| ParseLeftHandSideExpression(CHECK_OK);
|
| + has_extends = true;
|
| }
|
|
|
| bool has_seen_constructor = false;
|
| @@ -992,8 +994,8 @@ 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,
|
| - &has_seen_constructor, CHECK_OK);
|
| + ParsePropertyDefinition(NULL, in_class, is_static, has_extends,
|
| + &is_computed_name, &has_seen_constructor, CHECK_OK);
|
| }
|
|
|
| Expect(Token::RBRACE, CHECK_OK);
|
|
|