Skip to content

Commit df78515

Browse files
MattiasBuelensaduh95
authored andcommitted
stream: fix typo in ReadableStreamBYOBReader.readIntoRequests
PR-URL: #56560 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 4a77a9e commit df78515

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/webstreams/readablestream.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ class ReadableStreamBYOBReader {
925925
throw new ERR_INVALID_ARG_TYPE('stream', 'ReadableStream', stream);
926926
this[kState] = {
927927
stream: undefined,
928-
requestIntoRequests: [],
928+
readIntoRequests: [],
929929
close: {
930930
promise: undefined,
931931
resolve: undefined,
@@ -1031,7 +1031,7 @@ class ReadableStreamBYOBReader {
10311031
[kInspect](depth, options) {
10321032
return customInspect(depth, options, this[kType], {
10331033
stream: this[kState].stream,
1034-
requestIntoRequests: this[kState].requestIntoRequests.length,
1034+
readIntoRequests: this[kState].readIntoRequests.length,
10351035
close: this[kState].close.promise,
10361036
});
10371037
}

0 commit comments

Comments
 (0)