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

Re: WindowProxy objects violate ES5 invariants

From: David Bruant <bruant.d@gmail.com>
Date: Sat, 15 Dec 2012 15:05:03 +0100
Message-ID: <50CC838F.1000106@gmail.com>
To: "public-script-coord@w3.org" <public-script-coord@w3.org>

A little point that may make things a little bit annoying: when a 
variable is declared globally with "var" (I assume "let" too and it's 
worse with "const") or a function declared globally, the 
variable/function name is currently reflected as a non-configurable 
property of the global object (I don't know if it's a DOM or an 
ECMAScript thing).

As a consequence, WindowProxy currently reflects non-configurable 
properties for these cases.

Maybe the solution for these is to reflect them as configurable?

Received on Saturday, 15 December 2012 14:05:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:08 UTC