streams2: Call read(0) on resume()
authorisaacs <i@izs.me>
Mon, 10 Dec 2012 23:58:23 +0000 (15:58 -0800)
committerisaacs <i@izs.me>
Fri, 14 Dec 2012 18:52:28 +0000 (10:52 -0800)
commit8f428f3b0deaaf74987076aafa47f36768a05d99
tree58e79c3d8cba9b6141f5878dcb31fe3dc7ecdfb9
parentfc7d8d59f75b57545cd4951ef178d25ef6af9d64
streams2: Call read(0) on resume()

Otherwise (especially with stdin) you sometimes end up in cases
where the high water mark is zero, and the current buffer is at 0,
and it doesn't need a readable event, so it never calls _read().
lib/_debugger.js
lib/_stream_readable.js