Sign in
◑
Theme
chromium
/
external
/
github.com
/
v8
/
node
/
refs/heads/fuchsia
/
.
/
test
/
fixtures
/
uncaught-exceptions
/
callbackify1.js
blob: 1fbe7c8ebfd7c59c3372d59a4b96ff81c05a31e9 [
file
] [
edit
]
'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
);
});
}