Files
Kmake/test/parallel/test-worker-exit-event-error.js

9 lines
249 B
JavaScript
Raw Permalink Normal View History

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