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

Unified Diff: test/mjsunit/call.js

Issue 6087011: Draft of ES5 fix to Function.prototype.call and apply (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 12 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/arguments-apply.js ('k') | test/mjsunit/compiler/regress-arguments.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/call.js
diff --git a/test/mjsunit/call.js b/test/mjsunit/call.js
index b873d7d12dd434b7e87daee975d479cd3b0b751f..7c91103e67bc705628e924a9b7227de3a5dbb48b 100644
--- a/test/mjsunit/call.js
+++ b/test/mjsunit/call.js
@@ -29,19 +29,19 @@ function f0() {
return this;
}
-assertTrue(this === f0.call(), "1");
+assertTrue(undefined === f0.call(), "1");
assertTrue(this === f0.call(this), "w");
assertTrue(this === f0.call(this, 1), "w");
assertTrue(this === f0.call(this, 1, 2), "w");
-assertTrue(this === f0.call(null), "3a");
-assertTrue(this === f0.call(null, 1), "3b");
-assertTrue(this === f0.call(null, 1, 2), "3c");
+assertTrue(null === f0.call(null), "3a");
+assertTrue(null === f0.call(null, 1), "3b");
+assertTrue(null === f0.call(null, 1, 2), "3c");
-assertTrue(this === f0.call(void 0), "4a");
-assertTrue(this === f0.call(void 0, 1), "4b");
-assertTrue(this === f0.call(void 0, 1, 2), "4c");
+assertTrue(undefined === f0.call(void 0), "4a");
+assertTrue(undefined === f0.call(void 0, 1), "4b");
+assertTrue(undefined === f0.call(void 0, 1, 2), "4c");
var x = {};
assertTrue(x === f0.call(x));
« no previous file with comments | « test/mjsunit/arguments-apply.js ('k') | test/mjsunit/compiler/regress-arguments.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698