stream: fix typo in ReadableStreamBYOBReader.readIntoRequests

PR-URL: https://github.com/nodejs/node/pull/56560
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Mattias Buelens authored and Marco Ippolito committed 2025-03-06 13:38:10 +01:00
1 parent d84be843e3
commit d7aefc0524
1 file changed
+2 -2
+2 -2
View File
@@ -918,7 +918,7 @@ class ReadableStreamBYOBReader {
throw new ERR_INVALID_ARG_TYPE('stream', 'ReadableStream', stream);
this[kState] = {
stream: undefined,
requestIntoRequests: [],
readIntoRequests: [],
close: {
promise: undefined,
resolve: undefined,
@@ -1024,7 +1024,7 @@ class ReadableStreamBYOBReader {
[kInspect](depth, options) {
return customInspect(depth, options, this[kType], {
stream: this[kState].stream,
requestIntoRequests: this[kState].requestIntoRequests.length,
readIntoRequests: this[kState].readIntoRequests.length,
close: this[kState].close.promise,
});
}