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

Unified Diff: test/mjsunit/harmony/regress/regress-4395.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 | « src/scopes.cc ('k') | test/mjsunit/harmony/regress/regress-4395-global-eval.js » ('j') | 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/mjsunit/harmony/regress/regress-4395.js b/test/mjsunit/harmony/regress/regress-4395.js
index fd1eb38df2a7e7871f56ffdf7d4d48067ad04a72..a003856715552b3dbe4f0fdad3bba7ad348294fb 100644
--- a/test/mjsunit/harmony/regress/regress-4395.js
+++ b/test/mjsunit/harmony/regress/regress-4395.js
@@ -96,3 +96,9 @@
new D();
})();
+
+
+(function testScopeFlags() {
+ ((x, y = eval('x')) => assertEquals(42, y))(42);
+ ((x, {y = eval('x')}) => assertEquals(42, y))(42, {});
+})();
« no previous file with comments | « src/scopes.cc ('k') | test/mjsunit/harmony/regress/regress-4395-global-eval.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698