Skip to content

Commit 4ed300a

Browse files
danbevtargos
authored andcommitted
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: #22613 Reviewed-By: Denys Otrishko <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent 9a10421 commit 4ed300a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_stream_readable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ function emitReadable(stream) {
529529

530530
function emitReadable_(stream) {
531531
var state = stream._readableState;
532-
debug('emit readable');
532+
debug('emitReadable_', state.destroyed, state.length, state.ended);
533533
if (!state.destroyed && (state.length || state.ended)) {
534534
stream.emit('readable');
535535
}

0 commit comments

Comments
 (0)