Using function.prototype.bind without breaking function.prototype.apply

Mark S. Miller erights at
Wed Sep 7 14:53:36 PDT 2011

On Wed, Sep 7, 2011 at 2:52 PM, Mark S. Miller <erights at> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list