Skip to content

Commit

Permalink
stream: fix comment for sync flag of ReadableState
Browse files Browse the repository at this point in the history
It seems that the comment for sync flag of ReadableState is
copied from WritableState without modification.

PR-URL: #11139
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
Wang Xinyong authored and mcollina committed Mar 3, 2017
1 parent 1004b9b commit 202b07f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/_stream_readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ function ReadableState(options, stream) {
this.endEmitted = false;
this.reading = false;

// a flag to be able to tell if the onwrite cb is called immediately,
// or on a later tick. We set this to true at first, because any
// actions that shouldn't happen until "later" should generally also
// not happen before the first write call.
// a flag to be able to tell if the event 'readable'/'data' is emitted
// immediately, or on a later tick. We set this to true at first, because
// any actions that shouldn't happen until "later" should generally also
// not happen before the first read call.
this.sync = true;

// whenever we return null, then we set a flag to say
Expand Down

0 comments on commit 202b07f

Please sign in to comment.