Sign in
chromium
/
external
/
github.com
/
v8
/
node
/
818bd6cb4df290cb2d46e75c7286d4ae03b4ea2b
/
.
/
test
/
parallel
/
test-worker-exit-event-error.js
blob: e2427c7dff726b6e277fa98e16ebbecbf15293a6 [
file
]
'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'
);
}));