File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ export class Observable<T> implements Subscribable<T> {
199
199
if ( operator ) {
200
200
operator . call ( sink , this . source ) ;
201
201
} else {
202
- sink . add ( this . source ? this . _subscribe ( sink ) : this . _trySubscribe ( sink ) ) ;
202
+ sink . add ( this . source || ! sink . syncErrorThrowable ? this . _subscribe ( sink ) : this . _trySubscribe ( sink ) ) ;
203
203
}
204
204
205
205
if ( sink . syncErrorThrowable ) {
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ export class Subscriber<T> extends Subscription implements Observer<T> {
68
68
}
69
69
if ( typeof destinationOrNext === 'object' ) {
70
70
if ( destinationOrNext instanceof Subscriber ) {
71
+ this . syncErrorThrowable = destinationOrNext . syncErrorThrowable ;
71
72
this . destination = ( < Subscriber < any > > destinationOrNext ) ;
72
73
( < any > this . destination ) . add ( this ) ;
73
74
} else {
You can’t perform that action at this time.
0 commit comments