Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Unified Diff: src/parser.h

Issue 289373005: Parser: delay throwing errors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
};
« no previous file with comments | « no previous file | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698