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

Re: "var" declarations shadowing properties from Window.prototype

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 12 Aug 2012 12:30:02 -0400
Message-ID: <5027DA0A.1040709@mit.edu>
To: Allen Wirfs-Brock <allen@wirfs-brock.com>
CC: Brendan Eich <brendan@mozilla.org>, public-script-coord@w3.org, es-discuss@mozilla.org, Cameron McCormack <cam@mcc.id.au>
On 8/10/12 8:17 PM, Allen Wirfs-Brock wrote:
> The least painful solution to the immediate FF issue may be to make
> indexedDB an own property of the window object rather than an inherited
> property. Perhaps do that for all variable-like  properties (those that
> down need real get/set logic) of the window object.

indexedDB has a real getter, fwiw: the object is created lazily....

> but isn't widespread use of inherited setters to implement DOM
> properties fairly recent?

No.  Gecko has done it all along, and IE and Opera have certainly done 
it for a good long while; I haven't tested going back more than a few years.

-Boris
Received on Sunday, 12 August 2012 16:30:33 UTC

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