1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix(streams): update TypeError message for pending reads when releasing reader (#13376)

This commit is contained in:
Leo Kettmeir 2022-01-14 18:47:16 +01:00 committed by GitHub
parent e650165e80
commit cf2d2b7280
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1286,9 +1286,7 @@
*/
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);
}
@ -1843,9 +1841,7 @@
*/
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);
}