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

fix: catch within innerSubscribe #6186

Merged
merged 2 commits into from
Mar 28, 2021

Conversation

cartant
Copy link
Collaborator

@cartant cartant commented Mar 28, 2021

Note that this PR targets the 6.x branch.

Description:

AFAICT, innerSubscribe is pretty much always called outside of a try/catch and that means that the error that subscribeTo throws if it receives an invalid ObservableInput won't be reported via the chained subscribers. Given that innerSubscribe is an internal v6 implementation detail and that's its always passed a known-to-be-safe Subscriber, it seems that any error effected could be reported directly to said Subscriber.

With this change, the bug reported in #5344 - which occurs only in v6 - is fixed.

Related issue (if exists): #5344

@cartant cartant marked this pull request as ready for review March 28, 2021 01:52
@cartant cartant requested a review from benlesh March 28, 2021 01:53
@cartant cartant force-pushed the cartant/inner-subscribe-catch branch from 127c9a8 to eea6559 Compare March 28, 2021 03:16
@benlesh benlesh merged commit 4014e19 into ReactiveX:6.x Mar 28, 2021
@cartant cartant deleted the cartant/inner-subscribe-catch branch April 18, 2021 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants