new "ES6" specification draft

Herby Vojčík herby at
Tue Jan 17 14:20:15 PST 2012

Allen Wirfs-Brock wrote:
> An updated draft is available at the usual place
> ( )
> That draft incorporated decisions made at the Nov. 2011 TC39 meeting.
> However, note that this draft also contains a significant amount of
> still "in flight" work.
> Allen

PropertyAssignment : PropertyName ( FormalParameterList ) { FunctionBody }
1. Let propName be PropName of PropertyName.
2. Let closure be the result of creating a new Function object as 
specified in 13.2 using a FormalParameterList : [empty] production as 
the parameter list and body specified by FunctionBody. Pass in the 
LexicalEnvironment of the running execution context as the Scope. Pass 
in true as the Strict flag. Pass object as the optional homeObject 
argument and propName as the optional methodName argument.
3. Let desc be the Property Descriptor{[[Get]]: closure, [[Enumerable]]: 
true, [[Configurable]]: true}
4. Call the [[DefineOwnProperty]] internal method of object with 
arguments propName, desc, and false.

is just a copy-pasted getter (which is after this and has 5. - 8. 
instead 1. - 4.). 3. should be changed to

3. Let desc be the Property Descriptor{[[Value]]: closure, 
[[Enumerable]]: false, [[Configurable]]: true, [[Writable]]: true}



More information about the es-discuss mailing list