1'use strict'; 2const common = require('../common'); 3 4if (!common.isMainThread) 5 common.skip('execArgv does not affect Workers'); 6 7// This test ensures that no asynchronous operations are performed in the 'exit' 8// handler. 9// https://github.com/nodejs/node/issues/12322 10 11process.on('exit', () => { 12 setTimeout(() => process.abort(), 0); // Should not run. 13 for (const start = Date.now(); Date.now() - start < 10;); 14}); 15