Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-repl-require-cache.js « parallel « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4ccabe473cdbe8e4c283210e5c24b4a34765eb3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';
require('../common');
const assert = require('assert');
const repl = require('repl');

// https://github.com/joyent/node/issues/3226

require.cache.something = 1;
assert.strictEqual(require.cache.something, 1);

repl.start({ useGlobal: false }).close();

assert.strictEqual(require.cache.something, 1);