Conflicts between W3C specs and ES5?

David-Sarah Hopwood david-sarah at jacaranda.org
Thu Dec 3 22:20:34 PST 2009


Maciej Stachowiak wrote:
> On Dec 3, 2009, at 4:06 AM, Jorge Chamorro wrote:
> 
>> 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.

<pedantry>
That's true in ES3. In ES5, entries in the scope chain are environment
records, which can be either Object Environment Records that each have
a prototype chain, or Declarative Environment Records.
</pedantry>

-- 
David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 292 bytes
Desc: OpenPGP digital signature
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20091204/999f34cc/attachment.bin>


More information about the es-discuss mailing list