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

Unified Diff: test/mjsunit/function-bind.js

Issue 7148014: Ensure that bound functions does not have a prototype (fixes issue 794) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 6 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 | « src/v8natives.js ('k') | test/mjsunit/regress/regress-794.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/function-bind.js
===================================================================
--- test/mjsunit/function-bind.js (revision 8285)
+++ test/mjsunit/function-bind.js (working copy)
@@ -62,7 +62,7 @@
function f_bound_this(z) {
return z + this.y - this.x;
-}
+}
assertEquals(3, f_bound_this(1))
f = f_bound_this.bind(obj);
@@ -75,7 +75,7 @@
// Test chained binds.
-// When only giving the thisArg, any number of binds should have
+// When only giving the thisArg, any number of binds should have
// the same effect.
f = foo.bind(foo);
assertEquals(3, f(1, 1, 1));
@@ -181,4 +181,3 @@
// Test instanceof obj2 is bar, not f.
assertTrue(obj2 instanceof bar);
assertFalse(obj2 instanceof f);
-
« no previous file with comments | « src/v8natives.js ('k') | test/mjsunit/regress/regress-794.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698