Index: src/parsing/parser-base.h |
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h |
index f24fc36c54dae5782a48d7b773836bd42ebf144a..4a61f0726800c31c1a90eb07bb15e68186bc8422 100644 |
--- a/src/parsing/parser-base.h |
+++ b/src/parsing/parser-base.h |
@@ -3062,7 +3062,7 @@ ParserBase<Traits>::ParseSuperExpression(bool is_new, |
IsClassConstructor(kind)) { |
if (peek() == Token::PERIOD || peek() == Token::LBRACK) { |
scope->RecordSuperPropertyUsage(); |
- return this->SuperPropertyReference(scope_, factory(), pos); |
+ return this->NewSuperPropertyReference(scope_, factory(), pos); |
} |
// new super() is never allowed. |
// super() is only allowed in derived constructor |
@@ -3070,7 +3070,7 @@ ParserBase<Traits>::ParseSuperExpression(bool is_new, |
// 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->NewSuperCallReference(scope_, factory(), pos); |
} |
} |