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

Unified Diff: test/message/new-target-for-loop.js

Issue 1290013002: [es6] Make assignment to new.target an early ReferenceError (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add a few more tests Created 5 years, 4 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 | « test/message/new-target-assignment.out ('k') | test/message/new-target-for-loop.out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/message/new-target-for-loop.js
diff --git a/test/message/export-duplicate.js b/test/message/new-target-for-loop.js
similarity index 70%
copy from test/message/export-duplicate.js
copy to test/message/new-target-for-loop.js
index f45aefe13f8a427bd7ad5bced7da24db32ec5e25..76a8eecba22967a400ae35773f763fe596300f2c 100644
--- a/test/message/export-duplicate.js
+++ b/test/message/new-target-for-loop.js
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
-// MODULE
+// Flags: --harmony-new-target
-var a, b;
-export { a };
-export { a, b };
+function f() { for (new.target in {}); }
« no previous file with comments | « test/message/new-target-assignment.out ('k') | test/message/new-target-for-loop.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698