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