Allen Wirfs-Brock (2014-11-25T00:51:40.000Z)
d at domenic.me (2014-12-04T22:34:26.922Z)
There is definite a 1:1:1 relationship between a global object, realmRec, global environment record. And ES views those relationships are immutable. You can't just change the global object of a realmRec or give it a different global environment record after it has been initialized. Note that the ES6 spec. defines [InitializeFirstRealm][1] that define how the first Realm gets created. Creating additional realms would have to perform a similar set of steps. Subsequent to the ES6 spec. we will be defining a ES level Realm object and associated API that supports creation and initialization of additional realms. [1]: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-initializefirstrealm