668587dbf0bb85925640d9d90e90f991efde7cbf
2 const { isMainThread
} = require('worker_threads')
3 const { ThreadWorker
, KillBehaviors
} = require('../../../lib')
4 const TestUtils
= require('../../test-utils')
5 const { WorkerFunctions
} = require('../../test-types')
9 data
.function = data
.function || WorkerFunctions
.jsonIntegerSerialization
10 const result
= TestUtils
.executeWorkerFunction(data
)
17 module
.exports
= new ThreadWorker(test
, {
19 killBehavior
: KillBehaviors
.HARD