mirror of https://github.com/nodejs/node.git
repl: remove deprecated bufferedCommand property
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 <ruben@bridgewater.de> PR-URL: https://github.com/nodejs/node/pull/33286 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>pull/33449/head
parent
37524307fe
commit
4ace010b53
|
@ -1547,12 +1547,15 @@ code, no replacement API is provided.
|
||||||
### DEP0074: `REPLServer.bufferedCommand`
|
### DEP0074: `REPLServer.bufferedCommand`
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
changes:
|
changes:
|
||||||
|
- version: REPLACEME
|
||||||
|
pr-url: https://github.com/nodejs/node/pull/33286
|
||||||
|
description: End-of-Life.
|
||||||
- version: v9.0.0
|
- version: v9.0.0
|
||||||
pr-url: https://github.com/nodejs/node/pull/13687
|
pr-url: https://github.com/nodejs/node/pull/13687
|
||||||
description: Runtime deprecation.
|
description: Runtime deprecation.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
Type: Runtime
|
Type: End-of-Life
|
||||||
|
|
||||||
The `REPLServer.bufferedCommand` property was deprecated in favor of
|
The `REPLServer.bufferedCommand` property was deprecated in favor of
|
||||||
[`REPLServer.clearBufferedCommand()`][].
|
[`REPLServer.clearBufferedCommand()`][].
|
||||||
|
|
|
@ -626,15 +626,6 @@ function REPLServer(prompt,
|
||||||
});
|
});
|
||||||
|
|
||||||
self.clearBufferedCommand();
|
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) {
|
function completer(text, cb) {
|
||||||
complete.call(self, text, self.editorMode ?
|
complete.call(self, text, self.editorMode ?
|
||||||
|
|
Loading…
Reference in New Issue