diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 7879aa7d991f98..59232512d4c58d 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -1696,12 +1696,15 @@ file descriptors. ### DEP0082: `REPLServer.prototype.memory()` -Type: Runtime +Type: End-of-Life `REPLServer.prototype.memory()` is only necessary for the internal mechanics of the `REPLServer` itself. Do not use this function. diff --git a/lib/repl.js b/lib/repl.js index b086cf61adc919..45061119dbc621 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -1352,11 +1352,6 @@ REPLServer.prototype.defineCommand = function(keyword, cmd) { this.commands[keyword] = cmd; }; -REPLServer.prototype.memory = deprecate( - _memory, - 'REPLServer.memory() is deprecated', - 'DEP0082'); - // TODO(BridgeAR): This should be replaced with acorn to build an AST. The // language became more complex and using a simple approach like this is not // sufficient anymore. diff --git a/test/parallel/test-repl-memory-deprecation.js b/test/parallel/test-repl-memory-deprecation.js deleted file mode 100644 index 07d377d8fbf9fc..00000000000000 --- a/test/parallel/test-repl-memory-deprecation.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; -const common = require('../common'); -const assert = require('assert'); -const repl = require('repl'); - -testMemory(); - -function testMemory() { - const server = repl.start({ prompt: '> ' }); - const warn = 'REPLServer.memory() is deprecated'; - - common.expectWarning('DeprecationWarning', warn, 'DEP0082'); - assert.strictEqual(server.memory(), undefined); - server.close(); -}