mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
82cf0f2f3c
The name of the test did not make it clear what it was about. (It also used "timer" in the name instead of "timers" like all the other tests.) I also added a comment to be extra clear about the test purpose and a link to the issue that was originally filed about it. PR-URL: https://github.com/nodejs/node/pull/54008 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
9 lines
298 B
JavaScript
9 lines
298 B
JavaScript
// Check that setImmediate works even if process is tampered with.
|
|
// This is a regression test for https://github.com/nodejs/node/issues/17681.
|
|
|
|
'use strict';
|
|
const common = require('../common');
|
|
global.process = {}; // Boom!
|
|
common.allowGlobals(global.process);
|
|
setImmediate(common.mustCall());
|