Object.defineMethod()?

Brendan Eich brendan at mozilla.org
Mon Aug 6 14:29:40 PDT 2012


Rick Waldron wrote:
> On Monday, August 6, 2012 at 4:18 PM, Axel Rauschmayer wrote:
>> Will that function still be added, or will its work (setting up 
>> [[Home]] and [[MethodName]]) be done via Object.defineProperty? I 
>> couldn’t find anything in the draft.
>
> It was part of the object initializer proposal
>
> http://wiki.ecmascript.org/doku.php?id=harmony:object_initialiser_super

As your fine notes from 
https://mail.mozilla.org/pipermail/es-discuss/2012-May/022838.html say

"Resolution: Defer super outside of classes"

That means no free 'super' in functions not defined as methods, and no 
Object.defineMethod. The ES6 draft reflects this.

/be


More information about the es-discuss mailing list