From 4ace010b538877f2005dd7976f2c9e224ce7a026 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Thu, 7 May 2020 20:22:12 +0200 Subject: [PATCH] repl: remove deprecated bufferedCommand property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This property is deprecated since Node.js v9.0.0 and to improve maintainability of the REPL it is now removed. Signed-off-by: Ruben Bridgewater PR-URL: https://github.com/nodejs/node/pull/33286 Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell --- doc/api/deprecations.md | 5 ++++- lib/repl.js | 9 --------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 181ca24e29fe16..d0c3170cf7fdc5 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -1547,12 +1547,15 @@ code, no replacement API is provided. ### DEP0074: `REPLServer.bufferedCommand` -Type: Runtime +Type: End-of-Life The `REPLServer.bufferedCommand` property was deprecated in favor of [`REPLServer.clearBufferedCommand()`][]. diff --git a/lib/repl.js b/lib/repl.js index 271640c6a715c1..aaa202b5decbb8 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -626,15 +626,6 @@ function REPLServer(prompt, }); self.clearBufferedCommand(); - ObjectDefineProperty(this, 'bufferedCommand', { - get: deprecate(() => self[kBufferedCommandSymbol], - 'REPLServer.bufferedCommand is deprecated', - 'DEP0074'), - set: deprecate((val) => self[kBufferedCommandSymbol] = val, - 'REPLServer.bufferedCommand is deprecated', - 'DEP0074'), - enumerable: true - }); function completer(text, cb) { complete.call(self, text, self.editorMode ?