diff options
Diffstat (limited to 'lib/_stream_readable.js')
-rw-r--r-- | lib/_stream_readable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 9678d77f6c..5cdc0864a0 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -341,7 +341,7 @@ function howMuchToRead(n, state) { return 0; if (state.objectMode) return 1; - if (n !== n) { + if (Number.isNaN(n)) { // Only flow one buffer at a time if (state.flowing && state.length) return state.buffer.head.data.length; |