My ECMAScript 7 wishlist

Anne van Kesteren annevk at annevk.nl
Fri Sep 26 08:12:54 PDT 2014


On Fri, Sep 26, 2014 at 5:01 PM, Jason Orendorff
<jason.orendorff at gmail.com> wrote:
> On Thu, Sep 25, 2014 at 6:56 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
>> SpiderMonkey used to support __noSuchMethod__, I believe.
>
> It's still there.
>
> js> var anObject = { __noSuchMethod__() { return "what"; } };
> js> anObject.saysWhat();
> "what"

https://bugzilla.mozilla.org/show_bug.cgi?id=683218 is the bug on
getting it removed, in case anyone is interested.


-- 
https://annevankesteren.nl/


More information about the es-discuss mailing list