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

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

From: Travis Leithead <travis.leithead@microsoft.com>
Date: Wed, 15 Aug 2012 18:31:55 +0000
To: Cameron McCormack <cam@mcc.id.au>, Boris Zbarsky <bzbarsky@MIT.EDU>
CC: Brendan Eich <brendan@mozilla.com>, Brandon Benvie <brandon@brandonbenvie.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>, "es-discuss@mozilla.org" <es-discuss@mozilla.org>
Message-ID: <9768D477C67135458BF978A45BCF9B3838405F86@TK5EX14MBXW604.wingroup.windeploy.ntdev.microsoft.com>
> From: Cameron McCormack [mailto:cam@mcc.id.au]
> 
> 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/001

> > 0.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.

+1 That's also what I expect.
Received on Wednesday, 15 August 2012 18:32:31 UTC

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