From caf2335a47db089a1e1b2c5a90d85cf644f6c355 Mon Sep 17 00:00:00 2001 From: mariotsi Date: Thu, 12 Jul 2018 10:59:57 +0100 Subject: [PATCH] stream: name anonymous function in _stream_writable.js PR-URL: https://github.com/nodejs/node/pull/21753 Refs: https://github.com/nodejs/node/issues/8913 Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Anna Henningsen Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater Reviewed-By: Jon Moss Reviewed-By: Colin Ihrig --- lib/_stream_writable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_stream_writable.js b/lib/_stream_writable.js index 2f69ba931afa4b..3bad957912b323 100644 --- a/lib/_stream_writable.js +++ b/lib/_stream_writable.js @@ -168,7 +168,7 @@ WritableState.prototype.getBuffer = function getBuffer() { }; Object.defineProperty(WritableState.prototype, 'buffer', { - get: internalUtil.deprecate(function() { + get: internalUtil.deprecate(function writableStateBufferGetter() { return this.getBuffer(); }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')