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:
Denys Otrishko authored and Node.js GitHub Bot committed 2020-09-01 20:39:17 +00:00
1 parent d5fa6a8f1b
commit e2ffa454d3
1 file changed
+5 -1
+5 -1
View File
@@ -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;