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> {
199199    if  ( operator )  { 
200200      operator . call ( sink ,  this . source ) ; 
201201    }  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 ) ) ; 
203203    } 
204204
205205    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> {
6868        } 
6969        if  ( typeof  destinationOrNext  ===  'object' )  { 
7070          if  ( destinationOrNext  instanceof  Subscriber )  { 
71+             this . syncErrorThrowable  =  destinationOrNext . syncErrorThrowable ; 
7172            this . destination  =  ( < Subscriber < any > >  destinationOrNext ) ; 
7273            ( < any >  this . destination ) . add ( this ) ; 
7374          }  else  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments