Permalink
Browse files

stream: simplify `src._readableState` to `state`

PR-URL: #18264
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
  • Loading branch information...
MoonBall authored and starkwang committed Jan 20, 2018
1 parent 7f6a3ba commit 49b3798f816fafe6af9a6de3303f6adc77d53259
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/_stream_readable.js
View
@@ -649,8 +649,8 @@ Readable.prototype.pipe = function(dest, pipeOpts) {
if (((state.pipesCount === 1 && state.pipes === dest) ||
(state.pipesCount > 1 && state.pipes.indexOf(dest) !== -1)) &&
!cleanedUp) {
debug('false write response, pause', src._readableState.awaitDrain);
src._readableState.awaitDrain++;
debug('false write response, pause', state.awaitDrain);
state.awaitDrain++;
increasedAwaitDrain = true;
}
src.pause();

0 comments on commit 49b3798

Please sign in to comment.