diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index f6fec7d1ba0f61..fbe1b96270e772 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -82,6 +82,9 @@ The `_linklist` module is deprecated. Please use a userland alternative. ### DEP0003: `_writableState.buffer` -Type: Runtime +Type: End-of-Life -The `_writableState.buffer` property is deprecated. Use the -`_writableState.getBuffer()` method instead. +The `_writableState.buffer` has been removed. Use `_writableState.getBuffer()` +instead. ### DEP0004: `CryptoStream.prototype.readyState` diff --git a/lib/_stream_writable.js b/lib/_stream_writable.js index 3f029883705a0a..17ce4a9d3472a8 100644 --- a/lib/_stream_writable.js +++ b/lib/_stream_writable.js @@ -37,7 +37,6 @@ const { module.exports = Writable; Writable.WritableState = WritableState; -const internalUtil = require('internal/util'); const EE = require('events'); const Stream = require('stream'); const { Buffer } = require('buffer'); @@ -195,13 +194,6 @@ WritableState.prototype.getBuffer = function getBuffer() { return out; }; -ObjectDefineProperty(WritableState.prototype, 'buffer', { - get: internalUtil.deprecate(function writableStateBufferGetter() { - return this.getBuffer(); - }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + - 'instead.', 'DEP0003') -}); - // Test _writableState for inheritance to account for Duplex streams, // whose prototype chain only points to Readable. var realHasInstance;