1 import { Subject } from './Subject';
2 import { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';
3 export class BehaviorSubject extends Subject {
9 return this.getValue();
11 _subscribe(subscriber) {
12 const subscription = super._subscribe(subscriber);
13 if (subscription && !subscription.closed) {
14 subscriber.next(this._value);
20 throw this.thrownError;
22 else if (this.closed) {
23 throw new ObjectUnsubscribedError();
30 super.next(this._value = value);
33 //# sourceMappingURL=BehaviorSubject.js.map