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: Fri, 10 Aug 2012 16:11:57 +1000
Message-ID: <5024A62D.2040704@mcc.id.au>
To: Brendan Eich <brendan@mozilla.org>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>
Brendan Eich:
> We don't need to do anything with ECMA-262 or WebIDL or IndexedDB. I was
> wrong to believe that ES5's change stuck. It did not stick in ES5.1. But
> SpiderMonkey re-regressed.
>
> So the only thing I see to fix is SpiderMonkey.
>
> I hope this helps. Again, ES5 tried a change that we backed off from
> making, so the long-standing reality is that var tests "in" not "own",
> and therefore won't shadow proto-properties with undefined-valued bindings.
>
> Whew! for WebIDL and IndexedDB. Also good for ES5.1.

Excellent; the best change to have to make is no change.  (Thanks for 
the history corrections.)
Received on Friday, 10 August 2012 06:12:32 UTC

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