blob: 07d377d8fbf9fcee72afd8192b8eda1bffa44537 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
'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();
}
|