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

Unified Diff: src/messages.js

Issue 1033823002: [es6] emit error when for-in loop declarations are initialized in strict mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « no previous file | src/parser.h » ('j') | src/parser.cc » ('J')
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 672fd4b8100fa26b499d983ab0d06a379d435793..5f11e75ddc01341362fe0db34fe11e372edd003c 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -197,7 +197,9 @@ var kMessages = {
duplicate_proto: ["Duplicate __proto__ fields are not allowed in object literals"],
param_after_rest: ["Rest parameter must be last formal parameter"],
constructor_noncallable: ["Class constructors cannot be invoked without 'new'"],
- array_not_subclassable: ["Subclassing Arrays is not currently supported."]
+ array_not_subclassable: ["Subclassing Arrays is not currently supported."],
+ strict_for_in_loop_initializer: ["for-in loop variable declaration may not have an initializer in strict mode."],
arv (Not doing code reviews) 2015/03/25 09:17:43 This is misleading...
caitp (gmail) 2015/03/25 11:22:42 I know it's not technically allowed in sloppy mode
+ for_of_loop_initializer: ["for-of loop variable declaration may not have an initializer."]
};
« no previous file with comments | « no previous file | src/parser.h » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698