node/test
isaacs 993bb93e0a streams: Don't emit 'end' until read() past EOF
This prevents the following sort of thing from being confusing:

```javascript
stream.on('data', function() { console.error('got data'); });
stream.pause(); // stop reading

// turns out no data is available
stream.push(null);

// Hand the stream to someone else, who does stuff...
setTimeout(function() {
  // too late! 'end' is already emitted!
  stream.on('end', function() { console.error('got end'); });
});
```

With this change, the `end` event is not emitted until you call `read()`
*past* the EOF null.  So, a paused stream will not swallow the `end`
event and emit it before you `resume()` the stream.
2013-07-25 13:14:49 -07:00
..
addons test: modify async native test.js to test for #4820 2013-02-21 13:14:07 -08:00
disabled Merge remote-tracking branch 'ry/v0.8' into master 2013-02-18 10:21:08 -08:00
fixtures src: break on uncaught exception 2013-06-26 19:54:31 +02:00
gc test: fix up weakref.cc after v8 api change 2013-07-06 17:44:45 +02:00
internet DNS: Support NAPTR queries 2013-03-06 14:31:22 +04:00
message process: remove maxTickDepth from _tickCallback 2013-05-30 09:30:19 -07:00
pummel Merge branch 'v0.10' 2013-05-13 11:13:39 -07:00
simple streams: Don't emit 'end' until read() past EOF 2013-07-25 13:14:49 -07:00
common.js test: optionally set common.PORT via env variable 2013-03-02 19:09:39 +01:00