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 Antoine du Hamel committed 2025-01-30 10:44:14 +01:00
1 parent 4a77a9e1eb
commit df78515664
1 file changed
+2 -2
+2 -2
View File
@@ -925,7 +925,7 @@ class ReadableStreamBYOBReader {
throw new ERR_INVALID_ARG_TYPE('stream', 'ReadableStream', stream);
this[kState] = {
stream: undefined,
requestIntoRequests: [],
readIntoRequests: [],
close: {
promise: undefined,
resolve: undefined,
@@ -1031,7 +1031,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,
});
}