Index: src/parsing/preparser.h |
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h |
index 22432baca920084ca74038bfb24c1bdef7834c21..5cef1bcd5672d14a2101db732298e45b83c76421 100644 |
--- a/src/parsing/preparser.h |
+++ b/src/parsing/preparser.h |
@@ -934,6 +934,8 @@ class PreParserTraits { |
inline void RewriteNonPattern(Type::ExpressionClassifier* classifier, |
bool* ok); |
+ V8_INLINE ZoneList<typename Type::ExpressionClassifier::Error>* |
+ GetReportedErrorList() const; |
V8_INLINE Zone* zone() const; |
V8_INLINE ZoneList<PreParserExpression>* GetNonPatternList() const; |
@@ -1127,6 +1129,12 @@ void PreParserTraits::RewriteNonPattern(Type::ExpressionClassifier* classifier, |
} |
+ZoneList<typename PreParserTraits::Type::ExpressionClassifier::Error>* |
+PreParserTraits::GetReportedErrorList() const { |
+ return pre_parser_->function_state_->GetReportedErrorList(); |
+} |
+ |
+ |
Zone* PreParserTraits::zone() const { |
return pre_parser_->function_state_->scope()->zone(); |
} |