Skip to content

When exception is thrown in resultSelector function of forkJoin error is not propagated to subscriber. #3216

Closed
Xenira/Shashki
#66
@m-s-sh

Description

When exception is thrown in resultSelector function of forkJoin error is not propagated to subscriber.
I am not sure if it is normal behaviour or a bug?

RxJS version:
5.5.6

Code to reproduce:

Observable.forkJoin(
    Observable.of(1),
    Observable.of(2),
    (i, buffer) => {
        throw new Error('error');
    }).catch((error) => {
        return Observable.of(3);
    }).subscribe(console.log,
    (error) => {
        console.log('error!');
    });

Expected behavior:
to catch the error and print : error!

Actual behavior:
node_modules/rxjs/Observable.js:165 throw sink.syncErrorValue;

Additional information:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions