Skip to content

Errors sometimes not rethrown #2813

@matthewwithanm

Description

@matthewwithanm

Been tracking down this tricky bug that was causing some real-world pain 😢

RxJS version: 5.3.1 & 5.4.3

Code to reproduce:

Runnable version here.

Observable.of(0, Scheduler.async)
  .mergeMap(() =>
    Observable.combineLatest(Observable.of(0))
  )
  .subscribe(() => { throw new Error('uh oh'); });

Expected behavior:

Error is re-thrown asynchronously and can be handled by normal uncaught exception means. (window.onerror, uncaughtException).

Actual behavior:

Error gets swallowed.

Additional information:

combineLatest seems to be involved here—if you get rid of it, the example behaves as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions