node/test/parallel/test-timer-immediate.js
Ruben Bridgewater becc3ec372
test: remove common.globalCheck
This flag is partially used in tests where it was not necessary and
it is always possible to replace this flag with
`common.allowGlobals`. This makes sure all globals are truly tested
for.

PR-URL: https://github.com/nodejs/node/pull/20717
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2018-05-19 17:55:57 +02:00

6 lines
152 B
JavaScript

'use strict';
const common = require('../common');
global.process = {}; // Boom!
common.allowGlobals(global.process);
setImmediate(common.mustCall());