Skip to content

Commit 5f24cea

Browse files
lundibundirichardlau
authored andcommittedSep 3, 2020
stream: fix Readable stream state properties
Looks like they have been accidentally moved in #31144. PR-URL: #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]>
1 parent 2598527 commit 5f24cea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎lib/_stream_readable.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1176,13 +1176,17 @@ ObjectDefineProperties(Readable.prototype, {
11761176
}
11771177
},
11781178

1179-
// Legacy getter for `pipesCount`
1179+
});
1180+
1181+
ObjectDefineProperties(ReadableState.prototype, {
1182+
// Legacy getter for `pipesCount`.
11801183
pipesCount: {
11811184
get() {
11821185
return this.pipes.length;
11831186
}
11841187
},
11851188

1189+
// Legacy property for `paused`.
11861190
paused: {
11871191
get() {
11881192
return this[kPaused] !== false;

0 commit comments

Comments
 (0)