Files
Kmake/test/parallel/test-timers-process-tampering.js

9 lines
306 B
JavaScript
Raw Permalink Normal View History

2026-05-26 23:36:42 -07:00
// 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');
globalThis.process = {}; // Boom!
common.allowGlobals(globalThis.process);
setImmediate(common.mustCall());