W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2009

Re: Conflicts between W3C specs and ES5?

From: Jorge Chamorro <jorge@jorgechamorro.com>
Date: Thu, 3 Dec 2009 13:06:09 +0100
Cc: public-script-coord@w3.org
Message-Id: <6D3CF13A-ABFC-482E-8C17-DA265819C05A@jorgechamorro.com>
To: Mark S. Miller <erights@google.com>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:02 UTC