Index: src/parsing/preparser.h |
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h |
index 16eeab440ad1042456913a2e14a1f1979c2017cf..90de4835c596f897d53ff1e97d77c4e146d2309b 100644 |
--- a/src/parsing/preparser.h |
+++ b/src/parsing/preparser.h |
@@ -974,7 +974,7 @@ class PreParserTraits { |
} |
inline void QueueDestructuringAssignmentForRewriting(PreParserExpression) {} |
- inline void QueueNonPatternForRewriting(PreParserExpression) {} |
+ inline void QueueNonPatternForRewriting(PreParserExpression, bool* ok) {} |
void SetFunctionNameFromPropertyName(PreParserExpression, |
PreParserIdentifier) {} |
@@ -987,6 +987,8 @@ class PreParserTraits { |
inline PreParserExpression RewriteAwaitExpression(PreParserExpression value, |
int pos); |
+ V8_INLINE ZoneList<typename Type::ExpressionClassifier::Error>* |
+ GetReportedErrorList() const; |
V8_INLINE Zone* zone() const; |
V8_INLINE ZoneList<PreParserExpression>* GetNonPatternList() const; |
@@ -1214,13 +1216,19 @@ PreParserExpression PreParserTraits::RewriteAwaitExpression( |
return value; |
} |
-Zone* PreParserTraits::zone() const { |
- return pre_parser_->function_state_->scope()->zone(); |
+ZoneList<PreParserExpression>* PreParserTraits::GetNonPatternList() const { |
+ return pre_parser_->function_state_->non_patterns_to_rewrite(); |
} |
-ZoneList<PreParserExpression>* PreParserTraits::GetNonPatternList() const { |
- return pre_parser_->function_state_->non_patterns_to_rewrite(); |
+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(); |
} |