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

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