Files
bun.sh/test/js/node/test/parallel/test-worker-exit-event-error.js
2024-12-03 22:10:50 -08:00

9 lines
249 B
JavaScript

'use strict';
const common = require('../common');
const { Worker } = require('worker_threads');
process.on('uncaughtException', common.mustCall());
new Worker('', { eval: true })
.on('exit', common.mustCall(() => { throw new Error('foo'); }));