Status: New
Owner: ----

New issue 893 by [email protected]: '.caller' and '.arguments' not poisoned on bound functions
http://code.google.com/p/v8/issues/detail?id=893

At 15.3.4.5 steps 20 and 21 the spec say that a bound function's '.caller' and '.arguments' must be poisoned just as a strict function's must be.


function foo() { return bar.caller + ',' + bar.arguments; }
var bar = foo.bind({});
function baz() { return bar(); }
baz()
function baz() { return bar(); },[object Arguments]

demonstrates that they aren't. Rather, bound functions currently act (in this regard) like de-facto non-strict functions.

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

Reply via email to