Object.defineMethod()?

# Axel Rauschmayer (13 years ago)

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.

Axel

# Rick Waldron (13 years ago)

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

harmony:object_initialiser_super

# Brendan Eich (13 years ago)

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

harmony:object_initialiser_super

As your fine notes from esdiscuss/2012-May/022838 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.

# Axel Rauschmayer (13 years ago)

Makes sense!

# Allen Wirfs-Brock (13 years ago)

but see the := proposal...