(stream)
| 3213 | // another read() call => stack overflow. This way, it might trigger |
| 3214 | // a nextTick recursion warning, but that's not so bad. |
| 3215 | function emitReadable(stream) { |
| 3216 | var state = stream._readableState; |
| 3217 | state.needReadable = false; |
| 3218 | if (state.emittedReadable) |
| 3219 | return; |
| 3220 | |
| 3221 | state.emittedReadable = true; |
| 3222 | if (state.sync) |
| 3223 | process.nextTick(function() { |
| 3224 | emitReadable_(stream); |
| 3225 | }); |
| 3226 | else |
| 3227 | emitReadable_(stream); |
| 3228 | } |
| 3229 | |
| 3230 | function emitReadable_(stream) { |
| 3231 | stream.emit('readable'); |
no test coverage detected