Skip to content

Commit

Permalink
fix(Subscriber): errors in nextHandler no longer propagate to errorHa…
Browse files Browse the repository at this point in the history
…ndler

fixes #1135
  • Loading branch information
benlesh committed Jan 13, 2016
1 parent b2a27a2 commit f42eed2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
3 changes: 1 addition & 2 deletions src/Subscriber.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {noop} from './util/noop';
import {throwError} from './util/throwError';
import {tryOrOnError} from './util/tryOrOnError';
import {tryOrThrowError} from './util/tryOrThrowError';

import {Observer} from './Observer';
Expand Down Expand Up @@ -88,7 +87,7 @@ class SafeSubscriber<T> extends Subscriber<T> {
error?: (e?: any) => void,
complete?: () => void) {
super();
this._next = (typeof next === 'function') && tryOrOnError(next) || null;
this._next = (typeof next === 'function') && tryOrThrowError(next) || null;
this._error = (typeof error === 'function') && tryOrThrowError(error) || throwError;
this._complete = (typeof complete === 'function') && tryOrThrowError(complete) || null;
}
Expand Down
11 changes: 0 additions & 11 deletions src/util/tryOrOnError.ts

This file was deleted.

0 comments on commit f42eed2

Please sign in to comment.