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

Unified Diff: src/parser.cc

Issue 1236863008: Improve error message for duplicate parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix webkit test Created 5 years, 5 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.h ('k') | test/message/arrow-formal-parameters.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 1b177080bb3c0f7c50c983bd4a22f441faef33b6..a420bc1a5eb1b768285b4c1ab152c663f6eca750 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -2057,7 +2057,7 @@ Variable* Parser::Declare(Declaration* declaration,
if (declaration_kind == DeclarationDescriptor::NORMAL) {
ParserTraits::ReportMessage(MessageTemplate::kVarRedeclaration, name);
} else {
- ParserTraits::ReportMessage(MessageTemplate::kStrictParamDupe);
+ ParserTraits::ReportMessage(MessageTemplate::kParamDupe);
}
*ok = false;
return nullptr;
« no previous file with comments | « src/messages.h ('k') | test/message/arrow-formal-parameters.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698