Skip to content

Commit eae6e38

Browse files
committed
repl: remove deprecated repl.memory function
This removes the memory function. It is deprecated for a long time while not being really helpful being exposed. Thus, it is removed to improve maintainability of the REPL module. Signed-off-by: Ruben Bridgewater <[email protected]>
1 parent 01d9322 commit eae6e38

File tree

3 files changed

+4
-21
lines changed

3 files changed

+4
-21
lines changed

doc/api/deprecations.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,12 +1696,15 @@ file descriptors.
16961696
### DEP0082: `REPLServer.prototype.memory()`
16971697
<!-- YAML
16981698
changes:
1699+
- version: REPLACEME
1700+
pr-url: https://github.com/nodejs/node/pull/33286
1701+
description: End-of-Life.
16991702
- version: v9.0.0
17001703
pr-url: https://github.com/nodejs/node/pull/16242
17011704
description: Runtime deprecation.
17021705
-->
17031706
1704-
Type: Runtime
1707+
Type: End-of-Life
17051708
17061709
`REPLServer.prototype.memory()` is only necessary for the internal mechanics of
17071710
the `REPLServer` itself. Do not use this function.

lib/repl.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,11 +1369,6 @@ REPLServer.prototype.defineCommand = function(keyword, cmd) {
13691369
this.commands[keyword] = cmd;
13701370
};
13711371

1372-
REPLServer.prototype.memory = deprecate(
1373-
_memory,
1374-
'REPLServer.memory() is deprecated',
1375-
'DEP0082');
1376-
13771372
// TODO(BridgeAR): This should be replaced with acorn to build an AST. The
13781373
// language became more complex and using a simple approach like this is not
13791374
// sufficient anymore.

test/parallel/test-repl-memory-deprecation.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)