Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(stream): throw error when there are no error listeners
If an error is being propagated in a chain of streams and the current stream has no listeners attached, xstream would previously silently swallow the error. This allowed for buggy behavior to pass by silently. This commit changes the Stream implementation to check, during error propagation in a chain of stream, whether there are no listeners attached and simply throw the error in that case. BREAKING CHANGE:  This changes the behavior of most xstream code because errors are no longer swallowed. When you update xstream to this version, you may experience new errors thrown that you haven't seen before. Upgrade carefully, keeping in mind that these thrown errors were always there, but only now are surfaced. Closes issue #121
- Loading branch information