diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-08-31 06:20:36 +0200 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-09-03 10:01:37 +0200 |
commit | 0e519b4f56cfea84c252ab86f91eece05344bef1 (patch) | |
tree | 81376aea490fbce50ce116ed71f65943c486db55 /lib/_stream_readable.js | |
parent | d7d3bf57a6a32a0e1222deb6eeb106ea0ce711c8 (diff) | |
download | android-node-v8-0e519b4f56cfea84c252ab86f91eece05344bef1.tar.gz android-node-v8-0e519b4f56cfea84c252ab86f91eece05344bef1.tar.bz2 android-node-v8-0e519b4f56cfea84c252ab86f91eece05344bef1.zip |
stream: update emit readable debug statement
Currently, the debug statement in emitReadable is `emit readable` which
can be interpreted as the readable event is going to be emitted. But
I think the intent of this debug statment is just that the
emitReadable_ function was entered. If that was not the intent then
perhaps the debug statment should be moved into the if statement below
it.
PR-URL: https://github.com/nodejs/node/pull/22613
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'lib/_stream_readable.js')
-rw-r--r-- | lib/_stream_readable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index f082996643..07e2c41bee 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -529,7 +529,7 @@ function emitReadable(stream) { function emitReadable_(stream) { var state = stream._readableState; - debug('emit readable'); + debug('emitReadable_', state.destroyed, state.length, state.ended); if (!state.destroyed && (state.length || state.ended)) { stream.emit('readable'); } |