Relationship between globals, Realms, and global environment records

Boris Zbarsky bzbarsky at
Tue Nov 25 11:06:14 PST 2014

On 11/25/14, 2:02 PM, Allen Wirfs-Brock wrote:
> I know, I don't see how in you example to rationalize (using ES concepts)  that  'self.x'  evaluate to undefined and  but 'x' evaluates to 'test'.

"x" is doing a lookup on the global.

"self" is a proxy whose target is not that global but some other object.


More information about the es-discuss mailing list