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

Unified Diff: test/mjsunit/arguments-apply.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/apply.js ('k') | test/mjsunit/call.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/arguments-apply.js
diff --git a/test/mjsunit/arguments-apply.js b/test/mjsunit/arguments-apply.js
index 5a9122859ba3c9936303fe0f219cf5c5fdd615be..ae847f0cb88d9c0fd266b97c3d33335ae151f282 100644
--- a/test/mjsunit/arguments-apply.js
+++ b/test/mjsunit/arguments-apply.js
@@ -74,10 +74,9 @@ function NonObjectReceiver(receiver) {
}
assertEquals(42, NonObjectReceiver(42));
-assertEquals("object", typeof NonObjectReceiver(42));
-assertTrue(NonObjectReceiver(42) instanceof Number);
-assertTrue(this === NonObjectReceiver(null));
-assertTrue(this === NonObjectReceiver(void 0));
+assertEquals("number", typeof NonObjectReceiver(42));
+assertTrue(null === NonObjectReceiver(null));
+assertTrue(undefined === NonObjectReceiver(void 0));
function FunctionReceiver() {
« no previous file with comments | « test/mjsunit/apply.js ('k') | test/mjsunit/call.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698