W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

Re: Interaction of non-configurable attributes and named getters

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 02 Aug 2013 13:58:32 +1000
Message-ID: <51FB2E68.6070903@mcc.id.au>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>
Boris Zbarsky wrote:
> http://dev.w3.org/2006/webapi/WebIDL/#getownproperty says that named
> properties override normal own properties of the object, as far as I can
> tell. But http://dev.w3.org/2006/webapi/WebIDL/#defineownproperty allows
> defining properties as long as they don't collide with the named props.
>
> What happens if a non-configurable property is defined and then the set
> of supported names changes to include its name? Seems like
> [[GetOwnProperty]] will suddenly start returning a descriptor with
> [[Configurable]] set to true for that property name, no?

http://dev.w3.org/2006/webapi/WebIDL/#defineownproperty forces 
properties defined on objects that support indexed or named properties 
to be configurable in step 1.
Received on Friday, 2 August 2013 03:59:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:50 UTC