| Index: src/preparser.h
|
| diff --git a/src/preparser.h b/src/preparser.h
|
| index e9e0f4bfb8b620ef0872c356d07ce0ffa4edb432..a5aa3709a6d509174fe9c02530b80cd940c907ab 100644
|
| --- a/src/preparser.h
|
| +++ b/src/preparser.h
|
| @@ -2228,7 +2228,7 @@
|
| if (FLAG_strong_this && is_strong(language_mode())) {
|
| // Constructors' usages of 'this' in strong mode are parsed separately.
|
| // TODO(rossberg): this does not work with arrow functions yet.
|
| - if (IsClassConstructor(function_state_->kind())) {
|
| + if (i::IsConstructor(function_state_->kind())) {
|
| ReportMessage(MessageTemplate::kStrongConstructorThis);
|
| *ok = false;
|
| break;
|
| @@ -3612,7 +3612,7 @@
|
| Scope* scope = scope_->ReceiverScope();
|
| FunctionKind kind = scope->function_kind();
|
| if (IsConciseMethod(kind) || IsAccessorFunction(kind) ||
|
| - IsClassConstructor(kind)) {
|
| + i::IsConstructor(kind)) {
|
| if (peek() == Token::PERIOD || peek() == Token::LBRACK) {
|
| scope->RecordSuperPropertyUsage();
|
| return this->SuperPropertyReference(scope_, factory(), pos);
|
|
|