Skip to content

Commit f42eed2

Browse files
committed
fix(Subscriber): errors in nextHandler no longer propagate to errorHandler
fixes #1135
1 parent b2a27a2 commit f42eed2

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/Subscriber.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {noop} from './util/noop';
22
import {throwError} from './util/throwError';
3-
import {tryOrOnError} from './util/tryOrOnError';
43
import {tryOrThrowError} from './util/tryOrThrowError';
54

65
import {Observer} from './Observer';
@@ -88,7 +87,7 @@ class SafeSubscriber<T> extends Subscriber<T> {
8887
error?: (e?: any) => void,
8988
complete?: () => void) {
9089
super();
91-
this._next = (typeof next === 'function') && tryOrOnError(next) || null;
90+
this._next = (typeof next === 'function') && tryOrThrowError(next) || null;
9291
this._error = (typeof error === 'function') && tryOrThrowError(error) || throwError;
9392
this._complete = (typeof complete === 'function') && tryOrThrowError(complete) || null;
9493
}

src/util/tryOrOnError.ts

-11
This file was deleted.

0 commit comments

Comments
 (0)