fix(streams): update TypeError message for pending reads when releasing reader
*/
function readableStreamBYOBReaderRelease(reader) {
readableStreamReaderGenericRelease(reader);
- const e = new TypeError(
- "There are pending read requests, so the reader cannot be released.",
- );
+ const e = new TypeError("The reader was released.");
readableStreamBYOBReaderErrorReadIntoRequests(reader, e);
}
*/
function readableStreamDefaultReaderRelease(reader) {
readableStreamReaderGenericRelease(reader);
- const e = new TypeError(
- "There are pending read requests, so the reader cannot be released.",
- );
+ const e = new TypeError("The reader was released.");
readableStreamDefaultReaderErrorReadRequests(reader, e);
}
