mirror of
https://github.com/nodejs/node.git
synced 2025-05-05 15:32:15 +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>
14 lines
305 B
JavaScript
14 lines
305 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const repl = require('repl');
|
|
|
|
// https://github.com/joyent/node/issues/3226
|
|
|
|
require.cache.something = 1;
|
|
assert.equal(require.cache.something, 1);
|
|
|
|
repl.start({ useGlobal: false }).close();
|
|
|
|
assert.equal(require.cache.something, 1);
|