diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 83db0f0ad13f46..53549668717e09 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -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;