Re: variable declarations shadowing named properties on window

On 1/5/12 6:14 PM, Cameron McCormack wrote:
> That means, if my reading of the spec is right, the
> following document
>
> <!DOCTYPE html>
> <script>var toString; alert(toString)</script>
>
> should alert String(Object.prototype.toString) and not "undefined".
> Firefox, Opera and IE alert "undefined". Chrome/Safari alert the function.

Hmm.  The spec definitely changed in this regard in the last year.  I'd 
love it if one of the people familiar with that spec change could link 
to the current text that matters...

-Boris

Received on Friday, 6 January 2012 00:50:36 UTC