diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 2e7f751241d09a..c15850f9aa2064 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -1176,13 +1176,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;