mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 12:29:07 +00:00
9 lines
249 B
JavaScript
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'); }));
|