Improving Function.prototype.bind
Andrea Giammarchi
andrea.giammarchi at gmail.com
Fri Jan 6 00:58:13 PST 2012
same thing this does
var bound = Object.bind(Object);
bound.foo = capabilityBobShouldntGet; // who does this ?
var HAH = bound.foo;
... so I am missing your point I guess ... but my proposal wants to return
always same object for 99.9% of usage out there ...
On Fri, Jan 6, 2012 at 8:55 AM, Mark S. Miller <erights at google.com> wrote:
> In your proposal, what does this code sequence do:
>
>
> Object.boundTo(Object).foo = capabilityBobShouldntGet;
> var HAH = Object.boundTo(Object).foo;
>
> ?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120106/e4999378/attachment.html>
More information about the es-discuss
mailing list