W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2012

Interaction of non-configurable attributes and named getters

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 13 Dec 2012 16:51:11 -0500
Message-ID: <50CA4DCF.2020608@mit.edu>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>
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?

-Boris
Received on Thursday, 13 December 2012 21:51:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:08 UTC