IsConstructor

Allen Wirfs-Brock allen at wirfs-brock.com
Thu Jun 12 08:38:20 PDT 2014


On Jun 12, 2014, at 8:30 AM, Erik Arvidsson wrote:

> 
> Why can't we "blindly" call `this[[Construct]]`? It will throw for all of the above cases which is pretty much what one would expect.

I already said I'd be fine with that. Personally I think the practice of high-jacking methods and turning them into naked functions is something we should discourage.

It when we start trying to give a function both this-dependent and this-independent functional behavior that we get into the weeds.

Allen




More information about the es-discuss mailing list