Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught error is not being thrown in certain situation #2623

Closed
olessavluk opened this issue May 28, 2017 · 2 comments
Closed

Uncaught error is not being thrown in certain situation #2623

olessavluk opened this issue May 28, 2017 · 2 comments

Comments

@olessavluk
Copy link

RxJS version:
versions after 5.1.0 (including)

Code to reproduce:

Rx.Observable.of(null)
  .delay(1)
  .flatMap(v => (new Rx.BehaviorSubject(null)).map(() => v))
  .map(() => {
    throw new Error('tasty error');
  })
  .startWith('error should go next')
  .subscribe(
    v => console.log(v)
  );

you can also run this code in JSBin

Expected behavior:
Uncaught Error: tasty error should be thrown

Actual behavior:
Error was swallowed

Additional information:

  • This was introduced in v.5.1.0 (previous works fine for me)
  • If you try to remove delay or flatMap + BehaviourSubject error is thrown
@kwonoj
Copy link
Member

kwonoj commented May 28, 2017

this is dupe of #2565, there seems some odds around subject.

@kwonoj kwonoj closed this as completed May 28, 2017
@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants