mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 09:31:52 +00:00

Test more current behaviour, based on discussions in https://github.com/nodejs/node/pull/14697. PR-URL: https://github.com/nodejs/node/pull/14922 Reviewed-By: Trevor Norris <trev.norris@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
10 lines
258 B
JavaScript
10 lines
258 B
JavaScript
'use strict';
|
|
const common = require('../../common');
|
|
const { runMakeCallback } = require(`./build/${common.buildType}/binding`);
|
|
|
|
process.on('uncaughtException', common.mustCall());
|
|
|
|
runMakeCallback(5, common.mustCall(() => {
|
|
throw new Error('foo');
|
|
}));
|