private static LexicalEnvironment NewGlobalEnvironment(Object G, Object thisValue) { var env = new LexicalEnvironment(); var objRec = new ObjectEnvironmentRecord(G, false); var dclRec = new DeclarativeEnvironmentRecord(); var globalRec = new GlobalEnvironmentRecord(objRec, thisValue, dclRec); env.EnvironmentRecord = globalRec; return(env); }
public GlobalEnvironmentRecord(ObjectEnvironmentRecord objectRecord, Object globalThisValue, DeclarativeEnvironmentRecord declarativeRecord) { ObjectRecord = objectRecord; GlobalThisValue = globalThisValue; DeclarativeRecord = declarativeRecord; }