Get to know MDN better
Since March 2026, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
Note: This feature is available in Web Workers.
The ReadableStreamBYOBReader() constructor creates and returns a ReadableStreamBYOBReader object instance.
Note: You generally wouldn't use this constructor manually; instead, you'd use the ReadableStream.getReader() method with the argument "byob".
The ReadableStream to be read.
An instance of the ReadableStreamBYOBReader object.
Thrown if the supplied stream parameter is not a ReadableStream, or it is already locked for reading by another reader, or its stream controller is not a ReadableByteStreamController.
The constructor is rarely called directly. Instead call ReadableStream.getReader() as shown:
| Streams # ref-for-byob-reader-constructor① |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 26, 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.