mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
fix(streams): update TypeError message for pending reads when releasing reader (#13376)
This commit is contained in:
parent
e650165e80
commit
cf2d2b7280
1 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue