Files
node/lib
Miklos Suveges 1c07ebfd97 stream: inline needMoreData function
Inline the needMoreData function since it has only one call place.
Update the related comment.
Add a test for the edge case where HWM=0 and state.length=0.
Add a test for ReadableStream.read(n) method's edge case where
n, HWM and state.length are all zero.
This proves that there is no easy way to simplify the check at
https://github.com/nodejs/node/blob/master/lib/_stream_readable.js#L440

Fixes: https://github.com/nodejs/node/issues/19893
Refs: https://github.com/nodejs/node/pull/19896

PR-URL: https://github.com/nodejs/node/pull/21009
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Lance Ball <lball@redhat.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2018-06-02 14:18:40 +02:00
..
2018-04-13 19:59:44 +02:00
2018-03-05 19:51:30 +01:00
2018-05-18 15:25:42 +02:00
2018-04-14 10:55:35 -07:00
2018-06-01 11:12:10 +02:00
2017-08-28 00:39:42 +04:00
2018-06-01 11:01:45 +02:00
2018-04-03 13:57:41 -07:00
2016-10-04 12:17:32 -04:00
2018-04-16 16:02:12 +02:00
2017-03-10 11:23:48 -08:00
2018-05-18 15:25:40 +02:00
2018-05-18 15:32:05 +02:00
2018-04-26 19:42:48 +02:00