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

Unified Diff: test/message/for-of-let-loop-initializers.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: Update error message, add fixes for let decls 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
Index: test/message/for-of-let-loop-initializers.js
diff --git a/test/message/class-constructor-accessor.js b/test/message/for-of-let-loop-initializers.js
similarity index 71%
copy from test/message/class-constructor-accessor.js
copy to test/message/for-of-let-loop-initializers.js
index edc3c131697ed513a7c7a15c95e9aae2c68788ad..4ac0d549ce65c3750c9d0dd1d4c16d1f9d9214b9 100644
--- a/test/message/class-constructor-accessor.js
+++ b/test/message/for-of-let-loop-initializers.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 {
- get constructor() {}
+function test() {
+ for (let x = void 0 of [1, 2, 3]) {
+ return x;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698