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

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

Issue 1423613002: Fix eval calls in initializers of arrow function parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comment, rebase Created 5 years, 2 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/mjsunit/harmony/regress/regress-4395.js ('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-global-eval.js
diff --git a/test/message/arrow-missing.js b/test/mjsunit/harmony/regress/regress-4395-global-eval.js
similarity index 50%
copy from test/message/arrow-missing.js
copy to test/mjsunit/harmony/regress/regress-4395-global-eval.js
index c78bef9cd67f2b799a54c44d1656c5fc0e6d93e5..6cc6f0e747cf42233048c71f50090d4fe1c4bb2c 100644
--- a/test/message/arrow-missing.js
+++ b/test/mjsunit/harmony/regress/regress-4395-global-eval.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
+// Flags: --harmony-default-parameters --harmony-destructuring
-function foo() { return(); }
+((x, y = eval('x')) => assertEquals(42, y))(42);
+((x, {y = eval('x')}) => assertEquals(42, y))(42, {});
« no previous file with comments | « test/mjsunit/harmony/regress/regress-4395.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698