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

Unified Diff: test/mjsunit/this-dynamic-lookup.js

Issue 1136073002: Resolve references to "this" the same way as normal variables (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: "this" should never be looked up dynamically Created 5 years, 7 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/testcfg.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/this-dynamic-lookup.js
diff --git a/test/mjsunit/harmony/regress/regress-4056.js b/test/mjsunit/this-dynamic-lookup.js
similarity index 60%
copy from test/mjsunit/harmony/regress/regress-4056.js
copy to test/mjsunit/this-dynamic-lookup.js
index d938df0be088185f1990e4b253c5d5c300c39f1f..c5fa7a2c79c7b50738b76fff4281686f8bd3b3bc 100644
--- a/test/mjsunit/harmony/regress/regress-4056.js
+++ b/test/mjsunit/this-dynamic-lookup.js
@@ -3,10 +3,8 @@
// found in the LICENSE file.
// Flags: --harmony-arrow-functions
+// NO HARNESS
-function strictFunctionArrowEval(s) {
- "use strict";
- return (()=>eval(s))();
-};
-
-assertEquals(strictFunctionArrowEval("42"), 42)
+var globalEval = eval;
+globalEval("this; eval('42')");
+globalEval("eval('42'); this");
« no previous file with comments | « test/mjsunit/testcfg.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698