Skip to content

Commit 9cc6c1f

Browse files
committed
stream: fix Readable stream state properties
Looks like they have been accidentally moved in #31144.
1 parent ac3049d commit 9cc6c1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/_stream_readable.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,13 +1215,17 @@ ObjectDefineProperties(Readable.prototype, {
12151215
}
12161216
},
12171217

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

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

0 commit comments

Comments
 (0)