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

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

Issue 8097: Fix issue 124 by computing the receiver correctly when... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 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/bugs/bug-124.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-124.js
===================================================================
--- test/mjsunit/regress/regress-124.js (revision 556)
+++ test/mjsunit/regress/regress-124.js (working copy)
@@ -35,7 +35,7 @@
assertEquals("[object global]", eval("var f; toString()"));
-function F() {
+function F(f) {
assertEquals("[object global]", this.toString());
assertEquals("[object global]", toString());
@@ -44,6 +44,11 @@
assertEquals("[object global]", eval("var f; this.toString()"));
assertEquals("[object global]", eval("var f; toString()"));
+
+ assertEquals("[object global]", eval("f()"));
+
+ // Receiver should be the arguments object here.
+ assertEquals("[object Object]", eval("arguments[0]()"));
}
-F();
+F(Object.prototype.toString);
Property changes on: test/mjsunit/regress/regress-124.js
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « test/mjsunit/bugs/bug-124.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698