Skip to content

Commit eeebc31

Browse files
lundibundijoesepi
authored andcommitted
stream: fix Readable stream state properties
Looks like they have been accidentally moved in nodejs#31144. PR-URL: nodejs#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>
1 parent 3a7f3b1 commit eeebc31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/_stream_readable.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,13 +1216,17 @@ ObjectDefineProperties(Readable.prototype, {
12161216
}
12171217
},
12181218

1219-
// Legacy getter for `pipesCount`
1219+
});
1220+
1221+
ObjectDefineProperties(ReadableState.prototype, {
1222+
// Legacy getter for `pipesCount`.
12201223
pipesCount: {
12211224
get() {
12221225
return this.pipes.length;
12231226
}
12241227
},
12251228

1229+
// Legacy property for `paused`.
12261230
paused: {
12271231
get() {
12281232
return this[kPaused] !== false;

0 commit comments

Comments
 (0)