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

Change ReadableStream#pipeTo to return js.Promise[Unit] #639

Merged
merged 2 commits into from
Nov 30, 2021

Conversation

matil019
Copy link
Contributor

Nice to meet you!

According to the whatwg spec, ReadableStream#pipeTo should return a Promise<undefined>. This PR modifies the binding to return js.Promise[Unit] instead of a plain Unit.

According to the whatwg spec, it should return a Promise<undefined>.
Copy link
Member

@armanbilge armanbilge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch and thanks for the PR!

@armanbilge armanbilge merged commit 51a807c into scala-js:master Nov 30, 2021
@matil019 matil019 deleted the readablestream-pipeto-promise branch December 1, 2021 04:50
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