Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 141761d9c967e92ba5389824a55ae11a902dfd5c..fa72794159e07b7bc5c7818bb4bb8f9dc4407941 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -2752,8 +2752,8 @@ ParserBase<Traits>::ParseSuperExpression(bool is_new, bool* ok) { |
return this->SuperReference(scope_, factory()); |
} |
// new super() is never allowed. |
- // super() is only allowed in constructor |
- if (!is_new && peek() == Token::LPAREN && i::IsConstructor(kind)) { |
+ // super() is only allowed in derived constructor |
+ if (!is_new && peek() == Token::LPAREN && IsSubclassConstructor(kind)) { |
scope_->RecordSuperConstructorCallUsage(); |
return this->SuperReference(scope_, factory()); |
} |