Relationship between globals, Realms, and global environment records

Anne van Kesteren annevk at annevk.nl
Tue Nov 25 08:53:20 PST 2014


On Tue, Nov 25, 2014 at 5:45 PM, Allen Wirfs-Brock
<allen at wirfs-brock.com> wrote:
> I'm simply trying to understand what what is meant when HTML talks about changing the global object/realm/etc.

onload = function() {
  self.x = "test"
  console.log(self.x) // "test"
  document.open("text/html")
  console.log(self.x) // undefined
}


-- 
https://annevankesteren.nl/


More information about the es-discuss mailing list