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

Unified Diff: test/message/default-parameter-tdz.js

Issue 1468143004: [es6] Self-assignment in a default parameter initializer should throw (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Change less behavior, add TODO Created 5 years, 1 month 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.h ('k') | test/message/default-parameter-tdz.out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/message/default-parameter-tdz.js
diff --git a/test/message/arrow-two-rest-params.js b/test/message/default-parameter-tdz.js
similarity index 73%
copy from test/message/arrow-two-rest-params.js
copy to test/message/default-parameter-tdz.js
index 44eb47e5f626ba0d6b3a0474d8c10548ec304d6f..ff2a400e090713dff71c0e02fc147bb0cbdf4641 100644
--- a/test/message/arrow-two-rest-params.js
+++ b/test/message/default-parameter-tdz.js
@@ -2,6 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
-// Flags: --harmony-rest-parameters
+// Flags: --harmony-default-parameters
-(w, ...x, ...y) => 10
+(function(a=+a) { })();
« no previous file with comments | « src/preparser.h ('k') | test/message/default-parameter-tdz.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698