mirror of
https://github.com/nodejs/node.git
synced 2025-05-03 07:36:51 +00:00

This addresses a TODO comment, and removes invalid `.ToLocalChecked()` calls from our code base. PR-URL: https://github.com/nodejs/node/pull/35486 Reviewed-By: James M Snell <jasnell@gmail.com>
13 lines
278 B
JavaScript
13 lines
278 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
common.skipIfWorker();
|
|
|
|
// Test that 'exit' is emitted if 'beforeExit' throws.
|
|
|
|
process.on('exit', common.mustCall(() => {
|
|
process.exitCode = 0;
|
|
}));
|
|
process.on('beforeExit', common.mustCall(() => {
|
|
throw new Error();
|
|
}));
|