Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index 4f872a6e0d257429b0088454179ccc452bc315c3..10be1707ea7d03e95bbb6f1c1b2fc954c6bb2ea5 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -781,6 +781,8 @@ class Parser : public ParserBase<ParserTraits> { |
bool is_generator, |
bool* ok); |
+ void ThrowPendingError(); |
+ |
Isolate* isolate_; |
Handle<Script> script_; |
@@ -792,6 +794,14 @@ class Parser : public ParserBase<ParserTraits> { |
CachedDataMode cached_data_mode_; |
CompilationInfo* info_; |
+ |
+ // Pending errors. |
+ bool has_pending_error_; |
+ Scanner::Location pending_error_location_; |
+ const char* pending_error_message_; |
+ MaybeHandle<String> pending_error_arg_; |
+ const char* pending_error_char_arg_; |
+ bool pending_error_is_reference_error_; |
}; |