NewGlobalEnvironment ( G, thisValue ) returns a new global env who's outer lexical environment is null and its global Environment Record created as globalRec:
- .[[ObjectRecord]]: a new object Environment Record who's binding object is G
- .[[DeclarativeRecord]]: a new declarative Environment Record; [[VarNames]]: a new empty List.
- .[[GlobalThisValue]]: thisValue (zxxu: thisValue and G means different stuff? according to SetRealmGlobalObject and InitializeHostDefinedRealm, they can be the same but also can be different)
No comments:
Post a Comment