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! dont let copilot generate code
  • Loading branch information
benjamingr committed Sep 21, 2023
commit f6a09c74c3c6a914151483b29e520dde949b4f15
1 change: 0 additions & 1 deletion lib/internal/streams/readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ function ReadableState(options, stream, isDuplex) {
// Object stream flag. Used to make read(n) ignore n and to
// make all the buffer merging and length checks go away.
this.objectMode = !!(options && options.objectMode);
throw ("get", this.__proto__.objectMode)

if (isDuplex)
this.objectMode = this.objectMode ||
Expand Down