Status: New
Owner: ----

New issue 3045 by [email protected]: Support non-writable, configurable "length" and "name" function properties per ES6
http://code.google.com/p/v8/issues/detail?id=3045

As brought up during

 https://codereview.chromium.org/99203006/

ES6 Function objects will move to having a pair of non-writable, but configurable properties:

* "length", https://people.mozilla.org/~jorendorff/es6-draft.html#sec-functioninitialise * "name", https://people.mozilla.org/~jorendorff/es6-draft.html#sec-setfunctionname

The restricted properties "arguments" and "caller" are kept as non-configurable (ditto "prototype".)

The change wrt ES5 is to make "length" be configurable, along with "name" (and actually specify the required behavior of this de-facto property.)

When implementing/switching to having the two properties be non-writable & configurable, see

  https://codereview.chromium.org/99203006/#msg7

for issue that was experienced upon redefinition of "name", e.g.,

  Object.defineProperty(func, "name", {value: "other"});

was seen as a no-op. Property had to first/also be made writable to allow this.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to