mirror of
https://github.com/nodejs/node.git
synced 2025-05-06 09:02:40 +00:00

Replace var keyword with const or let. PR-URL: https://github.com/nodejs/io.js/pull/2286 Reviewed-By: Roman Reiss <me@silverwind.io>
21 lines
488 B
JavaScript
21 lines
488 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const repl = require('repl');
|
|
|
|
// Create a dummy stream that does nothing
|
|
const stream = new common.ArrayStream();
|
|
|
|
var r = repl.start({
|
|
input: stream,
|
|
output: stream,
|
|
useGlobal: false
|
|
});
|
|
|
|
|
|
// ensure that the repl context gets its own "console" instance
|
|
assert(r.context.console);
|
|
|
|
// ensure that the repl console instance is not the global one
|
|
assert.notStrictEqual(r.context.console, console);
|