Re: Conflicts between W3C specs and ES5?

On 15/11/2009, at 23:45, Mark S. Miller wrote:

>  1) Is the global object the same as the object at the end of the
> scope chain? (HTML5: yes. ES5: no).


Somehow, the truly last object in the scope chain is Object.prototype:

Object.prototype.k= 27;
console.log(k);
-> 27

For it's the last place where a reference would ever be looked up... or not ?
(now me ducks and runs :-)
-- 
Jorge.

Received on Thursday, 3 December 2009 12:06:47 UTC