Re: variable declarations shadowing named properties on window

On Wed, Jan 4, 2012 at 12:16 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 1/4/12 3:10 AM, Ojan Vafai wrote:
>
>>    Can we move frames away from being own properties of the window
>
>    (i.e. move them onto some prototype)?  That seems like the
>>    "simplest" (in terms of how it works, not in terms of expressing it
>>    in WebIDL) way of making var shadow their names.
>>
>>
>> Seems fine to me. I don't see any downsides. Maybe I just don't
>> understand the implications. :)
>>
>
> Well, it's not describable in WebIDL as it stands.  That's the main
> downside from a spec perspective.
>
> The other one is the usual "it's a behavior change, might break sites"
> thing.


IE and Opera already do this and have done so for a long time, right? That
makes me slightly less worried about the behavior change.

Received on Wednesday, 4 January 2012 08:31:14 UTC