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(fromEvent): throw if passed invalid target #6136

Merged

Conversation

cartant
Copy link
Collaborator

@cartant cartant commented Mar 14, 2021

Description:

This PR changes the implementation of fromEvent so that it throws when called - rather than when subscribed - if the passed event target is invalid.

BREAKING CHANGE: if passed an invalid event targed fromEvent will throw an error when called. Previously, it would emit an error notification when a subscription was made.

Related issue (if exists): #5823

@cartant cartant requested a review from benlesh March 14, 2021 07:00
@benlesh benlesh merged commit 317ba0c into ReactiveX:master Mar 15, 2021
@cartant cartant deleted the cartant/from-event-throw-upon-call branch March 19, 2021 07:20
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