From 35e5159c8d5987497b8980c1cf3996d241612957 Mon Sep 17 00:00:00 2001 From: Milly Date: Tue, 28 May 2024 06:29:54 +0900 Subject: fix(ext/web): `ReadableStream.from()` allows `Iterable` instead of `IterableIterator` (#23903) `createAsyncFromSyncIterator(x)` which is used in `ReadableStream.from()` 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. https://github.com/web-platform-tests/wpt/pull/46365 --------- Co-authored-by: Asher Gomez --- tests/wpt/runner/expectation.json | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/wpt/runner/expectation.json b/tests/wpt/runner/expectation.json index 78a33badf..30c9d692e 100644 --- a/tests/wpt/runner/expectation.json +++ b/tests/wpt/runner/expectation.json @@ -3170,14 +3170,8 @@ "owning-type-message-port.any.worker.html": false, "owning-type.any.html": false, "owning-type.any.worker.html": false, - "from.any.html": [ - "ReadableStream.from accepts a sync iterable of values", - "ReadableStream.from accepts a sync iterable of promises" - ], - "from.any.worker.html": [ - "ReadableStream.from accepts a sync iterable of values", - "ReadableStream.from accepts a sync iterable of promises" - ] + "from.any.html": true, + "from.any.worker.html": true }, "transform-streams": { "backpressure.any.html": true, -- cgit v1.2.3