/// Creates a new environment with `realm` as the parent.
Creates a new environment with `realm` as the parent.
Creates a new environment with ` realm ` as the parent .
pub fn new_inheriting(realm: &Arc<Realm>) -> Environment {
        Environment {
            parent: Arc::downgrade(realm),
            resolver_registry: ResolverRegistry::new(),
            stop_timeout: realm.environment.stop_timeout(),
        }
    }
pub fn new_inheriting ( realm : & Arc < Realm > ) -> Environment { Environment { parent : Arc :: downgrade ( realm ) , resolver_registry : ResolverRegistry :: new ( ) , stop_timeout : realm . environment . stop_timeout ( ) , } }
Creates a new environment with `realm` as the parent.
Creates a new environment with ` realm ` as the parent .
realm
&Arc<Realm>