The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / test / simple / test-stream-readable-event.js @ 6f043940

History | View | Annotate | Download (3.41 KB)

# Date Author Comment
db8ce89f 04/01/2013 06:09 PM Andrew Hart

test: test intended code-paths

The tests did not agree with the test comments. Tests first and second
were both testing the !state.reading case. Now second tests the
state.reading && state.length case.

Fixes joyent/node#5183

929e4d9c 03/28/2013 01:27 PM isaacs

stream: Emit readable on ended streams via read(0)

cc: @mjijackson

eafa9026 03/28/2013 01:27 PM isaacs

stream: Handle late 'readable' event listeners

In cases where a stream may have data added to the read queue before the
user adds a 'readable' event, there is never any indication that it's
time to start reading.

True, there's already data there, which the user would get if they...