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

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Mon, 13 Aug 2012 10:15:31 +1000
Message-ID: <50284723.7050702@mcc.id.au>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: Brendan Eich <brendan@mozilla.com>, Brandon Benvie <brandon@brandonbenvie.com>, public-script-coord@w3.org, es-discuss@mozilla.org
Boris Zbarsky:
> Per the current spec proposal, the GSP lives on the proto chain and
> exposes the various id/name stuff as own properties on itself, with the
> usual caveats about checking up the proto chain first that DOM named
> access has.  See
> http://dev.w3.org/2006/webapi/WebIDL/#NamedPropertiesObject (which
> Window uses).  There was a bunch of previous discussion about this at
> http://lists.w3.org/Archives/Public/public-script-coord/2012JanMar/0010.html
> and following, though it's not clear to me now whether the solution we
> decided on allows var to shadow these named props as desired after all...

I think it should, since they're exposed as data properties on the named 
properties object.
Received on Monday, 13 August 2012 00:16:16 UTC

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