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

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: 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
Index: test/mjsunit/harmony/regress/regress-4395-global-eval.js
diff --git a/test/message/arrow-param-after-rest-2.js b/test/mjsunit/harmony/regress/regress-4395-global-eval.js
similarity index 66%
copy from test/message/arrow-param-after-rest-2.js
copy to test/mjsunit/harmony/regress/regress-4395-global-eval.js
index c01cec8ad4f412c97797e07e946d1730a6513bcc..7860dae9459109cfcac72410a33b5c6b42e2bd60 100644
--- a/test/message/arrow-param-after-rest-2.js
+++ b/test/mjsunit/harmony/regress/regress-4395-global-eval.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
+((x, y = eval('x')) => assertEquals(42, y))(42);
« src/parameter-initializer-rewriter.cc ('K') | « 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