from.any.html

FAILExpected49 of 50 subtests pass381 ms

Details

Test
/streams/readable-streams/from.any.html
Harness
OK

Subtests

StatusSubtestMessage
PASSReadableStream.from accepts an array of values
PASSReadableStream.from accepts an array of promises
PASSReadableStream.from accepts an array iterator
PASSReadableStream.from accepts a Set
PASSReadableStream.from accepts a Set iterator
PASSReadableStream.from accepts a sync generator
PASSReadableStream.from accepts an async generator
PASSReadableStream.from accepts a sync iterable of values
PASSReadableStream.from accepts a sync iterable of promises
PASSReadableStream.from accepts a sync iterable with a function iterator
PASSReadableStream.from accepts an async iterable
PASSReadableStream.from accepts an async iterable with a function iterator
PASSReadableStream.from accepts a ReadableStream
PASSReadableStream.from accepts a ReadableStream async iterator
PASSReadableStream.from throws on invalid iterables; specifically null
PASSReadableStream.from throws on invalid iterables; specifically undefined
PASSReadableStream.from throws on invalid iterables; specifically 0
PASSReadableStream.from throws on invalid iterables; specifically NaN
PASSReadableStream.from throws on invalid iterables; specifically true
PASSReadableStream.from throws on invalid iterables; specifically {}
PASSReadableStream.from throws on invalid iterables; specifically Object.create(null)
PASSReadableStream.from throws on invalid iterables; specifically a function
PASSReadableStream.from throws on invalid iterables; specifically a symbol
FAILReadableStream.from throws on invalid iterables; specifically a string
assert_throws_js: from() should throw a TypeError function "() => ReadableStream.from(iterable)" did not throw
assert_throws_js: from() should throw a TypeError function "() => ReadableStream.from(iterable)" did not throw
PASSReadableStream.from throws on invalid iterables; specifically an object with a non-callable @@iterator method
PASSReadableStream.from throws on invalid iterables; specifically an object with a non-callable @@asyncIterator method
PASSReadableStream.from throws on invalid iterables; specifically an object with an @@iterator method returning a non-object
PASSReadableStream.from throws on invalid iterables; specifically an object with an @@asyncIterator method returning a non-object
PASSReadableStream.from re-throws errors from calling the @@iterator method
PASSReadableStream.from re-throws errors from calling the @@asyncIterator method
PASSReadableStream.from ignores @@iterator if @@asyncIterator exists
PASSReadableStream.from ignores a null @@asyncIterator
PASSReadableStream.from accepts an empty iterable
PASSReadableStream.from: stream errors when next() rejects
PASSReadableStream.from: stream errors when next() throws synchronously
PASSReadableStream.from: stream errors when next() returns a non-object
PASSReadableStream.from: stream errors when next() fulfills with a non-object
PASSReadableStream.from: stream stalls when next() never settles
PASSReadableStream.from: calls next() after first read()
PASSReadableStream.from: cancelling the returned stream calls and awaits return()
PASSReadableStream.from: return() is not called when iterator completes normally
PASSReadableStream.from: cancel() resolves when return() method is missing
PASSReadableStream.from: cancel() rejects when return() is not a method
PASSReadableStream.from: cancel() rejects when return() rejects
PASSReadableStream.from: cancel() rejects when return() throws synchronously
PASSReadableStream.from: cancel() rejects when return() fulfills with a non-object
PASSReadableStream.from: reader.read() inside next()
PASSReadableStream.from: reader.cancel() inside next()
PASSReadableStream.from: reader.cancel() inside return()
PASSReadableStream.from(array), push() to array while reading