noSuchMethod?

zwetan zwetan at gmail.com
Sun Aug 17 18:37:12 PDT 2008


On Sun, Aug 17, 2008 at 9:53 PM, Brendan Eich <brendan at mozilla.org> wrote:
[...]
>
> SpiderMonkey promulgated __noSuchMethod__ (I'm not sure if any other
> engine copied it). __noSuchMethod__ works by waiting until the result
> of obj.method's evaluation in
>

in ActionScript (AS2) we could use __resolve which I think worked like
__noSuchMethod__, but not sure about the details.

One thing that would need to be carefully tested/argumented would be
what happen if someone do that:

var self = this; //window, document,etc.

self.__noSuchMethod__ = function( id, args )
{
//...
}

zwetan


More information about the Es-discuss mailing list