chore: v2.6.13
[poolifier.git] / benchmarks / internal / thread-worker.mjs
index c1cd01414830aa9eaaa88bd2d7a0a3d0a4854ab4..88d57670f712bae8528724dfeef28d310eb29f65 100644 (file)
@@ -8,9 +8,9 @@ const debug = false
 function workerFunction (data) {
   data = data || {}
   data.function = data.function || WorkerFunctions.jsonIntegerSerialization
-  executeWorkerFunction(data)
+  const res = executeWorkerFunction(data)
   debug === true && console.debug('This is the main thread ' + isMainThread)
-  return { ok: 1 }
+  return res
 }
 
 export default new ThreadWorker(workerFunction)