-
Notifications
You must be signed in to change notification settings - Fork 5.6k
fix(ext/web): ReadableStream.from()
allows Iterable
instead of IterableIterator
#23903
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
Conversation
`createAsyncFromSyncIterator(x)` expects `x` as `Iterable` but, previous implements specify `Iterator` or `IterableIterator`. If it was `IterableIterator`, it would work, but if it was `Iterator`, an exception will occur. Tests have been merged into WPT. web-platform-tests/wpt#46365
CC @iuioiua |
ReadableStream.from()
allows Iterable
instead of IterableIterator
I'll update this PR once #23910 is merged. |
This change fixes the following (WPT) tests:
However, it also causes the following (WPT) tests to fail:
The 3 failures all show the same error:
|
Currently, async generator + However, the test fails because Currently, the |
Cool. There's been an improvement. The current failures give the same error:
|
8b8d1ab
to
e55ddb6
Compare
I made a mistake by not keeping up with what I said. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
createAsyncFromSyncIterator(x)
which is used inReadableStream.from()
expectsx
asIterable
but, previous implements specifyIterator
orIterableIterator
. If it wasIterableIterator
, it would work, but if it wasIterator
, an exception will occur.Tests have been merged into WPT.
web-platform-tests/wpt#46365