mirror of https://github.com/nodejs/node.git
16 lines
236 B
JavaScript
16 lines
236 B
JavaScript
|
'use strict';
|
||
|
|
||
|
// Used to test that `uncaughtException` is emitted
|
||
|
|
||
|
const { callbackify } = require('util');
|
||
|
|
||
|
{
|
||
|
async function fn() { }
|
||
|
|
||
|
const cbFn = callbackify(fn);
|
||
|
|
||
|
cbFn((err, ret) => {
|
||
|
throw new Error(__filename);
|
||
|
});
|
||
|
}
|