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

Unified Diff: test/mjsunit/harmony/regress/regress-arrow-duplicate-params.js

Issue 1178523002: Support rest parameters in arrow functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Fix error locations for param-after-rest errors Created 5 years, 6 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/mjsunit/harmony/regress/regress-arrow-duplicate-params.js
diff --git a/test/message/strong-object-set-proto.js b/test/mjsunit/harmony/regress/regress-arrow-duplicate-params.js
similarity index 67%
copy from test/message/strong-object-set-proto.js
copy to test/mjsunit/harmony/regress/regress-arrow-duplicate-params.js
index 890dd84d7292372c75cb9180ce67c3accadd0b81..a43f022c02d5ac942b5f7eae4b329f1beb78bfa9 100644
--- a/test/message/strong-object-set-proto.js
+++ b/test/mjsunit/harmony/regress/regress-arrow-duplicate-params.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.
-// Flags: --strong-mode
+// Flags: --harmony-arrow-functions
-"use strong";
-
-({}).__proto__ = {};
+assertThrows("(x, x, y) => 10;", SyntaxError);

Powered by Google App Engine
This is Rietveld 408576698