Sign in
chromium
/
external
/
github.com
/
v8
/
node
/
refs/heads/fuchsia-2020-07-14
/
.
/
test
/
parallel
/
test-worker-exit-event-error.js
blob: e2427c7dff726b6e277fa98e16ebbecbf15293a6 [
file
] [
edit
]
'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'
);
}));