| Index: src/preparser.h
|
| diff --git a/src/preparser.h b/src/preparser.h
|
| index 34295c71f297bce5cdca1fc81aa80252298304e5..2fe5db1d08e9e0f1b63d68c69950ca29ae31371a 100644
|
| --- a/src/preparser.h
|
| +++ b/src/preparser.h
|
| @@ -1715,15 +1715,9 @@
|
| return PreParserExpression::This();
|
| }
|
|
|
| - static PreParserExpression SuperPropertyReference(Scope* scope,
|
| - PreParserFactory* factory,
|
| - int pos) {
|
| - return PreParserExpression::Default();
|
| - }
|
| -
|
| - static PreParserExpression SuperCallReference(Scope* scope,
|
| - PreParserFactory* factory,
|
| - int pos) {
|
| + static PreParserExpression SuperReference(Scope* scope,
|
| + PreParserFactory* factory,
|
| + int pos) {
|
| return PreParserExpression::Default();
|
| }
|
|
|
| @@ -3521,7 +3515,7 @@
|
| Consume(Token::SUPER);
|
| int pos = position();
|
| Scanner::Location super_loc = scanner()->location();
|
| - ExpressionT expr = this->SuperCallReference(scope_, factory(), pos);
|
| + ExpressionT expr = this->SuperReference(scope_, factory(), pos);
|
|
|
| if (peek() != Token::LPAREN) {
|
| ReportMessage(MessageTemplate::kStrongConstructorSuper);
|
| @@ -3586,7 +3580,7 @@
|
| i::IsConstructor(kind)) {
|
| if (peek() == Token::PERIOD || peek() == Token::LBRACK) {
|
| scope->RecordSuperPropertyUsage();
|
| - return this->SuperPropertyReference(scope_, factory(), pos);
|
| + return this->SuperReference(scope_, factory(), pos);
|
| }
|
| // new super() is never allowed.
|
| // super() is only allowed in derived constructor
|
| @@ -3601,7 +3595,7 @@
|
| // TODO(rossberg): This might not be the correct FunctionState for the
|
| // method here.
|
| function_state_->set_super_location(scanner()->location());
|
| - return this->SuperCallReference(scope_, factory(), pos);
|
| + return this->SuperReference(scope_, factory(), pos);
|
| }
|
| }
|
|
|
|
|