• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2const common = require('../common');
3const assert = require('assert');
4const repl = require('repl');
5
6testMemory();
7
8function testMemory() {
9  const server = repl.start({ prompt: '> ' });
10  const warn = 'REPLServer.memory() is deprecated';
11
12  common.expectWarning('DeprecationWarning', warn, 'DEP0082');
13  assert.strictEqual(server.memory(), undefined);
14  server.close();
15}
16