Should the "length" property of bound functions be configurable

Brandon Benvie bbenvie at mozilla.com
Fri Aug 30 11:39:39 PDT 2013


Part of the function name proposal submitted would make "name" writable but not configurable, which is the inverse of the current spec for "length" being configurable but not writable. Seems there needs to be some discussion on what attributes should be where.

On Aug 30, 2013, at 7:36 PM, "Mark S. Miller" <erights at google.com> wrote:

> Cool. In that case we have more freedom. In any case, we should give both of these the same attributes.
> 
> 
> On Fri, Aug 30, 2013 at 10:34 AM, Claude Pache <claude.pache at gmail.com> wrote:
>> 
>> Le 30 août 2013 à 18:54, "Mark S. Miller" <erights at google.com> a écrit :
>> 
>> > It seems we have legacy saying that "name" should be writable.
>> >
>> 
>> Really? Just tried in the console of the latest stable versions of Firefox, Safari, Chrome and IE:
>> 
>> ```
>> Object.getOwnPropertyDescriptor(function() {}, 'name')
>> ```
>> 
>> Firefox, Safari and Chrome: `{value: "", writable: false, enumerable: false, configurable: false}`
>> IE: `undefined`
>> 
>> —Claude
> 
> 
> 
> -- 
>     Cheers,
>     --MarkM
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130830/c47648dc/attachment.html>


More information about the es-discuss mailing list