Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium ES5

New issue 793 by [email protected]: Function.prototype.bind created function doesn't work with instanceof
http://code.google.com/p/v8/issues/detail?id=793

function Foo(x){ this.x = x; }
var Fiz = Foo.bind({}, 42);
var f1 = new Foo(37);
print(f1 instanceof Fiz);  // prints false, should be true.

See 15.3.5.3 (special implementation of [[HasInstance]] on bound functions, which delegates to the target function).



--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to