[whatwg] [[GetOwnProperty]] for named properties of the Window object

Gavin Barraclough barraclough at apple.com
Thu Sep 12 13:50:06 PDT 2013

On Sep 12, 2013, at 11:43 AM, Boris Zbarsky <bzbarsky at MIT.EDU> wrote:

> On 9/12/13 2:36 PM, Gavin Barraclough wrote:
>> Hmmm, interesting.  I was thinking that in the case that a shadowing
>> property was put to the named property object itself
> Can't be done.  Looking at the ES5 [[Put]], ownDesc is a data descriptor here, so we land in step 3b, which calls [[DefineOwnProperty]], which is defined at http://dev.w3.org/2006/webapi/WebIDL/#named-properties-object-defineownpropertyand throws if "Throw" and silently does nothing otherwise.  ES6 is similar.

Ah, good point.  Firefox, Safari, Chrome all currently all allow this, but seems reasonable to prohibit.


>> then deleted
> Also can't be done.  See http://dev.w3.org/2006/webapi/WebIDL/#named-properties-object-delete
>> Many thanks,
> No problem!
> -Boris

More information about the whatwg mailing list