use of com.github.anba.es6draft.runtime.objects.observable.SubscriptionObserverPrototype in project es6draft by anba.
the class Realm method initializeObservableModule.
/**
* <h1>Extension: Observable</h1>
*
* @param realm
* the realm instance
*/
private static void initializeObservableModule(Realm realm) {
EnumMap<Intrinsics, OrdinaryObject> intrinsics = realm.intrinsics;
// allocation phase
ObservableConstructor observableConstructor = new ObservableConstructor(realm);
ObservablePrototype observablePrototype = new ObservablePrototype(realm);
SubscriptionPrototype subscriptionPrototype = new SubscriptionPrototype(realm);
SubscriptionObserverPrototype subscriptionObserverPrototype = new SubscriptionObserverPrototype(realm);
// registration phase
intrinsics.put(Intrinsics.Observable, observableConstructor);
intrinsics.put(Intrinsics.ObservablePrototype, observablePrototype);
intrinsics.put(Intrinsics.SubscriptionPrototype, subscriptionPrototype);
intrinsics.put(Intrinsics.SubscriptionObserverPrototype, subscriptionObserverPrototype);
// initialization phase
observableConstructor.initialize(realm);
observablePrototype.initialize(realm);
subscriptionPrototype.initialize(realm);
subscriptionObserverPrototype.initialize(realm);
}
Aggregations