Object.defineMethod()?
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
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
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.
Makes sense!
but see the := proposal...
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