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

Unified Diff: src/preparser.cc

Issue 200473003: Make invalid LHSs a parse-time (reference) error (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment Created 6 years, 9 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 | « src/preparser.h ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.cc
diff --git a/src/preparser.cc b/src/preparser.cc
index a64a3592b00838441753a742480dc7914c123f9e..1299fc89d2896d2a03b8c3db63b43358ef06581e 100644
--- a/src/preparser.cc
+++ b/src/preparser.cc
@@ -69,17 +69,20 @@ void PreParserTraits::CheckStrictModeLValue(PreParserExpression expression,
void PreParserTraits::ReportMessageAt(Scanner::Location location,
const char* message,
- Vector<const char*> args) {
+ Vector<const char*> args,
+ bool is_reference_error) {
ReportMessageAt(location.beg_pos,
location.end_pos,
message,
- args.length() > 0 ? args[0] : NULL);
+ args.length() > 0 ? args[0] : NULL,
+ is_reference_error);
}
void PreParserTraits::ReportMessageAt(Scanner::Location location,
const char* type,
- const char* name_opt) {
+ const char* name_opt,
+ bool is_reference_error) {
pre_parser_->log_
->LogMessage(location.beg_pos, location.end_pos, type, name_opt);
}
@@ -88,7 +91,8 @@ void PreParserTraits::ReportMessageAt(Scanner::Location location,
void PreParserTraits::ReportMessageAt(int start_pos,
int end_pos,
const char* type,
- const char* name_opt) {
+ const char* name_opt,
+ bool is_reference_error) {
pre_parser_->log_->LogMessage(start_pos, end_pos, type, name_opt);
}
« no previous file with comments | « src/preparser.h ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698