We are updating the Streams specification to use Web IDL's async_sequence<T> type for the input of ReadableStream.from(). The new IDL is:
interface ReadableStream {
static ReadableStream from(async_sequence<any> asyncIterable);
}
This comes with one behavioral change: ReadableStream.from("abc") used to iterate over the Unicode code points of the string (per String.prototype[Symbol.iterator]), but this will now throw a TypeError instead. The WPT tests have been updated to reflect this.
Specification change: whatwg/streams#1372
Tests: web-platform-tests/wpt#59594
We are updating the Streams specification to use Web IDL's
async_sequence<T>type for the input ofReadableStream.from(). The new IDL is:This comes with one behavioral change:
ReadableStream.from("abc")used to iterate over the Unicode code points of the string (perString.prototype[Symbol.iterator]), but this will now throw aTypeErrorinstead. The WPT tests have been updated to reflect this.Specification change: whatwg/streams#1372
Tests: web-platform-tests/wpt#59594