Files
Kmake/test/fixtures/uncaught-exceptions/callbackify1.js

16 lines
236 B
JavaScript
Raw Permalink Normal View History

2026-05-26 23:36:42 -07:00
'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);
});
}