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

Unified Diff: src/parser.cc

Issue 14161007: Change 'Parse error' to three more informative messages. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@master
Patch Set: git cl upload should be run with --no-find-copies Created 7 years, 8 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/messages.js ('k') | src/v8natives.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 23fa9feae6e7038e199c2cf5596e954ef338ed2c..04c120468777a0b9e05aa0163f367e07f86c7370 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -662,7 +662,7 @@ FunctionLiteral* Parser::DoParseProgram(CompilationInfo* info,
!body->at(0)->IsExpressionStatement() ||
!body->at(0)->AsExpressionStatement()->
expression()->IsFunctionLiteral()) {
- ReportMessage("unable_to_parse", Vector<const char*>::empty());
+ ReportMessage("single_function_literal", Vector<const char*>::empty());
ok = false;
}
}
@@ -4752,7 +4752,7 @@ Expression* Parser::ParseV8Intrinsic(bool* ok) {
if (args->length() == 1 && args->at(0)->AsVariableProxy() != NULL) {
return args->at(0);
} else {
- ReportMessage("unable_to_parse", Vector<const char*>::empty());
+ ReportMessage("not_isvar", Vector<const char*>::empty());
*ok = false;
return NULL;
}
« no previous file with comments | « src/messages.js ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698