Using function.prototype.bind without breaking function.prototype.apply
Mark S. Miller
erights at google.com
Wed Sep 7 14:53:36 PDT 2011
On Wed, Sep 7, 2011 at 2:52 PM, Mark S. Miller <erights at google.com> wrote:
>
>
> If there is not I propose using `undefined` to tell Function.prototype.bind
>> to leave thisArg flexible.
>>
>
> We cannot use 'undefined' for this, as we already use f.bind(undefined) in
> order to ensure that f's "this" is useless, and therefore harmless.
>
Of course, that only works if f is constrained to be strict, which we ensure
by other means.
--
Cheers,
--MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110907/08a930aa/attachment.html>
More information about the es-discuss
mailing list