Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/internal/webstreams/readablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,11 @@ function createReadableStreamState() {
}

function readableStreamFromIterable(iterable) {
if (iterable === null ||
(typeof iterable !== 'object' && typeof iterable !== 'function')) {
throw new ERR_ARG_NOT_ITERABLE(iterable);
}

let stream;
const iteratorGetter = iterable[SymbolAsyncIterator] ?? iterable[SymbolIterator];
if (iteratorGetter == null || typeof iteratorGetter !== 'function') {
Expand Down
7 changes: 0 additions & 7 deletions test/wpt/status/streams.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
"readable-streams/cross-realm-crash.window.js": {
"skip": "Browser-specific test"
},
"readable-streams/from.any.js": {
"fail": {
"expected": [
"ReadableStream.from throws on invalid iterables; specifically a string"
]
}
},
"readable-streams/owning-type-message-port.tentative.any.js": {
"fail": {
"note": "Readable streams with type owning are not yet supported",
Expand Down
Loading