using Jint.Native.Object; using Jint.Runtime.Environments; namespace Jint.Runtime { public sealed class Realm { // helps when debugging which nested realm we are in... #if DEBUG private static int globalId = 1; public Realm() { Id = globalId++; } internal int Id; #endif /// /// The intrinsic values used by code associated with this realm. /// public Intrinsics Intrinsics { get; internal set; } /// /// The global object for this realm. /// public ObjectInstance GlobalObject { get; internal set; } /// /// The global environment for this realm. /// public GlobalEnvironmentRecord GlobalEnv { get; internal set; } /// /// Field reserved for use by hosts that need to associate additional information with a Realm Record. /// public object HostDefined { get; set; } } }