Skip to content

Commit ad88fa7

Browse files
anonrigjasnell
andauthored
Update readablestream.js
Co-authored-by: James M Snell <jasnell@gmail.com>
1 parent c7125f4 commit ad88fa7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/internal/webstreams/readablestream.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,9 @@ class ReadableStream {
314314
// keep the previous no-op behavior.
315315
const controller = this[kState].controller;
316316
if (controller === undefined) {
317-
if (this[kState].state === 'readable')
317+
if (this[kState].state === 'readable') {
318318
readableStreamError(this, error);
319+
}
319320
return;
320321
}
321322
if (isReadableStreamDefaultController(controller))

0 commit comments

Comments
 (0)