mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
stream: fix Readable stream state properties
Looks like they have been accidentally moved in https://github.com/nodejs/node/pull/31144. PR-URL: https://github.com/nodejs/node/pull/34886 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
This commit is contained in:
1 parent
d5fa6a8f1b
commit
e2ffa454d3
1 file changed
+5
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user