blob: 00bb683220344282f3fc81d4b99018b780f38289 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
'use strict';
const common = require('../common');
const { Worker } = require('worker_threads');
// Regression test for https://github.com/nodejs/node/issues/34309
const w = new Worker(
`const { Worker } = require('worker_threads');
new Worker("throw new Error('uncaught')", { eval:true })`,
{ eval: true });
w.on('error', common.expectsError({
name: 'Error',
message: 'uncaught'
}));
|