Re: variable declarations shadowing named properties on window

Travis Leithead:
>> So, to clarify my understanding:
>> Name resolution lookup on the window/global will be:
>>
>> 1. window/global own props
>> 2. WindowProperties own props
>> 3. WindowPrototype own props
>> 4. Object [prototype] own props
>> 5. WindowProperties named/indexed props

Boris Zbarsky:
> I think #2 and #3 are in the opposite order if I understood Cameron
> correctly.

Yes.

Received on Sunday, 29 January 2012 23:01:16 UTC