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

Unified Diff: test/message/new-target-assignment.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 | « src/preparser.cc ('k') | test/message/new-target-assignment.out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/message/new-target-assignment.js
diff --git a/test/message/arrow-strict-eval-bare-parameter.js b/test/message/new-target-assignment.js
similarity index 73%
copy from test/message/arrow-strict-eval-bare-parameter.js
copy to test/message/new-target-assignment.js
index d5692517dd3e59b3d359d70ab455ad1c2b0f0bad..f257d1a5b573c93c219dcac805afd7efb22556e2 100644
--- a/test/message/arrow-strict-eval-bare-parameter.js
+++ b/test/message/new-target-assignment.js
@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
-// Flags: --harmony-arrow-functions
+// Flags: --harmony-new-target
-"use strict";
-eval => 42
+function f() { new.target = 5 }
« no previous file with comments | « src/preparser.cc ('k') | test/message/new-target-assignment.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698