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

Previously our tests did not check this codepath as seen at coverage.nodejs.org PR-URL: https://github.com/nodejs/node/pull/9555 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
15 lines
310 B
JavaScript
15 lines
310 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
|
|
process.on('exit', () => {
|
|
assert.strictEqual(process._exiting, true, 'process._exiting was not set!');
|
|
|
|
process.nextTick(() => {
|
|
common.fail('process is exiting, should not be called.');
|
|
});
|
|
});
|
|
|
|
process.exit();
|