My ECMAScript 7 wishlist

Jason Orendorff jason.orendorff at gmail.com
Fri Sep 26 08:01:40 PDT 2014


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"

We did tweak the semantics last year (a minor improvement, I think):
  https://bugzilla.mozilla.org/show_bug.cgi?id=916949

-j


More information about the es-discuss mailing list