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

Unified Diff: test/message/for-in-let-loop-initializers-strict.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: delete decl_props Created 5 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/preparser.cc ('k') | test/message/for-in-let-loop-initializers-strict.out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/message/for-in-let-loop-initializers-strict.js
diff --git a/test/message/class-constructor-generator.js b/test/message/for-in-let-loop-initializers-strict.js
similarity index 71%
copy from test/message/class-constructor-generator.js
copy to test/message/for-in-let-loop-initializers-strict.js
index 5d370f865eaa84bd187aab7721acfc2a0a390eac..a58f2fd275a99c34e3c74c379b7ec268b83bc7e8 100644
--- a/test/message/class-constructor-generator.js
+++ b/test/message/for-in-let-loop-initializers-strict.js
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
-// Flags: --harmony-classes
'use strict';
-class C {
- *constructor() {}
+function test() {
+ for (let x = void 0 in [1, 2, 3]) {
+ return x;
+ }
}
« no previous file with comments | « src/preparser.cc ('k') | test/message/for-in-let-loop-initializers-strict.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698