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'); }));
|