- Version: master
- Platform: all
- Subsystem: stream
In lib/_streams_readable.js, we have a block of code like this:
(state.length < state.highWaterMark ||
state.length === 0);
Because state.highWaterMark could be < 0 or null or undefined or really any object in Node < 10. However, we landed #18098 and so now we can simplify all those checks to be state.length <= state.highWaterMark.