Re: This objects for static methods

On Thu, Nov 13, 2014 at 11:31 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> Currently Web IDL does not provide the "this" value a static method was
> invoked with to the implementation of the static method.
>
> However, it seems like supporting subclassing might require access to this
> object.  For example, Promise.resolve actually uses the "this" value to
> construct the promise to be returned...
>
> Is this an unlikely edge case, or should we adjust Web IDL to pass in the
> this value?

Is this even something that needs to be specified? It falls out of the
JS semantics, unless the implementation specifically overrides it by
early-binding its methods, right?

~TJ

Received on Thursday, 13 November 2014 19:44:58 UTC