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

Re: variable declarations shadowing named properties on window

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 06 Jan 2012 13:59:14 +1100
Message-ID: <4F066382.5030506@mcc.id.au>
To: Allen Wirfs-Brock <allen@wirfs-brock.com>
CC: Boris Zbarsky <bzbarsky@MIT.EDU>, Ojan Vafai <ojan@chromium.org>, Travis Leithead <travis.leithead@microsoft.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>, Ian Hickson <ian@hixie.ch>, Jeff Walden <jwalden@mit.edu>
Allen Wirfs-Brock:
> I believe that this is the change Boris is referring to:
> https://bugs.ecmascript.org/show_bug.cgi?id=78

Thanks for the pointer, Allen (and my mistake for looking at ES5 and not 
ES5.1).  So Boris' suggestion of moving named properties to an object in 
the prototype chain will indeed work.

(Might it make sense to move the indexed properties there too?)
Received on Friday, 6 January 2012 03:00:00 UTC

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