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

Unified Diff: test/mjsunit/regress/regress-5736.js

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: Changes from review Created 4 years 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/regress/regress-5295-2.js ('k') | test/mjsunit/regress/regress-648719.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-5736.js
diff --git a/test/mjsunit/regress/regress-5736.js b/test/mjsunit/regress/regress-5736.js
index 6dcc0de7f47edd7e8387a63897db02593b1727a9..cf934cc9080c356c61664b18fa36b288420583bd 100644
--- a/test/mjsunit/regress/regress-5736.js
+++ b/test/mjsunit/regress/regress-5736.js
@@ -21,3 +21,6 @@ assertEquals(2, my_global);
my_global = foo;`);
assertEquals(4, my_global);
})();
+
+eval("let foo = 1; function lazy() { foo = 2; } lazy(); my_global = foo;");
+assertEquals(my_global, 2);
« no previous file with comments | « test/mjsunit/regress/regress-5295-2.js ('k') | test/mjsunit/regress/regress-648719.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698