current commit
200123.1 · worker: move JoinThread() back into exit callback
'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'); }));