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

Unified Diff: src/messages.js

Issue 6335010: Strict mode object literal validation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CR feedback Created 9 years, 11 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/messages.js
diff --git a/src/messages.js b/src/messages.js
index e62f06fcf884857e18fca7c768833bf3ad82269e..6247875e9c2867c52a8c707180cca2e31c421275 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -209,6 +209,9 @@ function FormatMessage(message) {
strict_param_dupe: "Strict mode function may not have duplicate parameter names",
strict_var_name: "Variable name may not be eval or arguments in strict mode",
strict_function_name: "Function name may not be eval or arguments in strict mode",
+ strict_duplicate_property: "Duplicate data property in object literal not allowed in strict mode",
+ accessor_data_property: "Object literal may not have data and accessor property with the same name",
+ accessor_get_set: "Object literal may not have multiple get/set accessors with the same name",
};
}
var format = kMessages[message.type];
« 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