Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream: use bitmap in readable state #49745

Merged
merged 10 commits into from
Sep 24, 2023
Prev Previous commit
Next Next commit
fixup!
  • Loading branch information
benjamingr committed Sep 21, 2023
commit 5013d2500b9f63bb6e1da0d2cfa699d8abcd8220
2 changes: 1 addition & 1 deletion lib/internal/streams/readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function ReadableState(options, stream, isDuplex) {
if (options && options.emitClose === false) this.state &= ~kEmitClose;

// Should .destroy() be called after 'end' (and potentially 'finish').
if (options || options.autoDestroy === false) this.state &= ~kAutoDestroy;
if (options && options.autoDestroy === false) this.state &= ~kAutoDestroy;


// Indicates whether the stream has errored. When true no further
Expand Down
Loading