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

_.of() in 3.0 doesn't respect use. #659

Closed
vqvu opened this issue Oct 26, 2018 · 0 comments
Closed

_.of() in 3.0 doesn't respect use. #659

vqvu opened this issue Oct 26, 2018 · 0 comments
Labels

Comments

@vqvu
Copy link
Collaborator

vqvu commented Oct 26, 2018

There's a new feature in 3.0 (not yet documented) called use that lets you extend the stream prototype. To allow top-level functions to create streams using the correct prototype, we bind the top-level object to the function's this reference.

Top-level functions must use this when constructing streams from scratch in order to be compliant. of doesn't do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant