Skip to content

Commit 4ace010

Browse files
committed
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 <[email protected]> PR-URL: #33286 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 3752430 commit 4ace010

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

‎doc/api/deprecations.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1547,12 +1547,15 @@ code, no replacement API is provided.
15471547
### DEP0074: `REPLServer.bufferedCommand`
15481548
<!-- YAML
15491549
changes:
1550+
- version: REPLACEME
1551+
pr-url: https://github.com/nodejs/node/pull/33286
1552+
description: End-of-Life.
15501553
- version: v9.0.0
15511554
pr-url: https://github.com/nodejs/node/pull/13687
15521555
description: Runtime deprecation.
15531556
-->
15541557

1555-
Type: Runtime
1558+
Type: End-of-Life
15561559

15571560
The `REPLServer.bufferedCommand` property was deprecated in favor of
15581561
[`REPLServer.clearBufferedCommand()`][].

‎lib/repl.js‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -626,15 +626,6 @@ function REPLServer(prompt,
626626
});
627627

628628
self.clearBufferedCommand();
629-
ObjectDefineProperty(this,'bufferedCommand',{
630-
get: deprecate(()=>self[kBufferedCommandSymbol],
631-
'REPLServer.bufferedCommand is deprecated',
632-
'DEP0074'),
633-
set: deprecate((val)=>self[kBufferedCommandSymbol]=val,
634-
'REPLServer.bufferedCommand is deprecated',
635-
'DEP0074'),
636-
enumerable: true
637-
});
638629

639630
functioncompleter(text,cb){
640631
complete.call(self,text,self.editorMode ?

0 commit comments

Comments
(0)