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

Unified Diff: test/mjsunit/harmony/regress/regress-4395.js

Issue 1317033005: Always lazy compile arrow functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add test and comment Created 5 years, 3 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
« src/preparser.h ('K') | « src/preparser.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/regress/regress-4395.js
diff --git a/test/message/arrow-param-after-rest.js b/test/mjsunit/harmony/regress/regress-4395.js
similarity index 54%
copy from test/message/arrow-param-after-rest.js
copy to test/mjsunit/harmony/regress/regress-4395.js
index 0fade6c31d3cb6c2e82fb7027628fdfae96e1962..3d957137be1bf61b8a4663f634d10097d457024d 100644
--- a/test/message/arrow-param-after-rest.js
+++ b/test/mjsunit/harmony/regress/regress-4395.js
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
-// Flags: --harmony-rest-parameters --harmony-arrow-functions
+// Flags: --harmony-default-parameters
-(...x, y) => 10
+assertEquals([42, 42], ((a, b=a=42) => [a, b])(10));
+assertEquals([10, 10], ((a, b=a) => [a, b])(10));
« src/preparser.h ('K') | « src/preparser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698