mirror of
https://github.com/nodejs/node.git
synced 2025-05-06 23:10:15 +00:00

PR-URL: https://github.com/nodejs/node/pull/10550 Reviewed-By: Rich Trott <rtrott@gmail.com>
9 lines
238 B
JavaScript
9 lines
238 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
|
|
process.on('beforeExit', common.mustCall(function() {
|
|
setTimeout(common.fail, 5);
|
|
process.exit(0); // Should execute immediately even if we schedule new work.
|
|
common.fail();
|
|
}));
|