new "ES6" specification draft

# Allen Wirfs-Brock (14 years ago)

An updated draft is available at the usual place (harmony:specification_drafts )

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.

# Herby Vojčík (14 years ago)

Allen Wirfs-Brock wrote:

An updated draft is available at the usual place (harmony:specification_drafts )

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

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

probably.