Skip to content

Commit

Permalink
stream: fix Readable stream state properties
Browse files Browse the repository at this point in the history
Looks like they have been accidentally moved in
nodejs#31144.

PR-URL: nodejs#34886
Reviewed-By: Robert Nagy <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Zeyu Yang <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Ricky Zhou <[email protected]>
  • Loading branch information
lundibundi authored and joesepi committed Oct 22, 2020
1 parent 3a7f3b1 commit eeebc31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/_stream_readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1216,13 +1216,17 @@ ObjectDefineProperties(Readable.prototype, {
}
},

// Legacy getter for `pipesCount`
});

ObjectDefineProperties(ReadableState.prototype, {
// Legacy getter for `pipesCount`.
pipesCount: {
get() {
return this.pipes.length;
}
},

// Legacy property for `paused`.
paused: {
get() {
return this[kPaused] !== false;
Expand Down

0 comments on commit eeebc31

Please sign in to comment.