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 ?