A Proposal For Formalizing __noSuchMethod__ in ECMAScript 3.1.

Brendan Eich brendan at mozilla.org
Sun Aug 17 20:32:48 PDT 2008

On Aug 17, 2008, at 7:31 PM, William Edney wrote:

> It is a property on Object.prototype

Actually it's not implemented anywhere by a built-in. The  
__noSuchMethod__ name is accessed only when a method call would  
otherwise fail because of a primitive-type callee. So, the built-in  
is the magic name and attempt to get its value as a "last ditch"  
invocation effort. Note that __noSuchMethod__ works for constructor  
calls too.

Hope this helps,


More information about the Es-discuss mailing list