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

Re: Conflicts between W3C specs and ES5?

From: Maciej Stachowiak <mjs@apple.com>
Date: Thu, 03 Dec 2009 04:09:21 -0800
Cc: "Mark S. Miller" <erights@google.com>, public-script-coord@w3.org
Message-id: <2E498451-9161-47C8-947A-36EA43F1840E@apple.com>
To: Jorge Chamorro <jorge@jorgechamorro.com>

On Dec 3, 2009, at 4:06 AM, Jorge Chamorro wrote:

> 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 :-)

No, the prototype chain is a separate concept from the scope chain.  
Entries in the scope chain are conceptually objects each of which has  
its own prototype chain.

Regards,
Maciej
Received on Thursday, 3 December 2009 12:09:57 UTC

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