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

Re: variable declarations shadowing named properties on window

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 05 Jan 2012 19:55:09 -0500
Message-ID: <4F06466D.3090406@mit.edu>
To: Ojan Vafai <ojan@chromium.org>
CC: Cameron McCormack <cam@mcc.id.au>, Travis Leithead <travis.leithead@microsoft.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>, Allen Wirfs-Brock <allen@wirfs-brock.com>, Ian Hickson <ian@hixie.ch>, Jeff Walden <jwalden@mit.edu>
On 1/5/12 6:35 PM, Ojan Vafai wrote:
> I haven't heard opposition to shadowing. It seems the only problem
> that's been brought up is figuring out how to spec it. Seems like an ES
> spec change is in order since a) it doesn't match what browsers do


What part of ES doesn't match exactly what which browsers do?

There was already a spec change so that var could shadow things on the 
global's proto chain.  Opera, IE, Gecko all either did that already or 
updated to the spec change.  JSC and V8 have not updated to it.

This spec change may not have propagated to all the copies of the spec 
people are reading; I recall running into that problem before...

I propose we wait for someone familiar with the spec change to comment 
with pointers to the updated spec text before anything else, because 
that part kind of seems to matter.

-Boris
Received on Friday, 6 January 2012 00:55:41 UTC

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