From f691359c1465ac13b6fb00284354de2291fa44b5 Mon Sep 17 00:00:00 2001 From: Edoardo Marangoni Date: Mon, 5 Aug 2024 19:33:33 +0200 Subject: [PATCH] chore: fix ci tests --- src/tasks/worker.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tasks/worker.js b/src/tasks/worker.js index 82f1757d..6f40a2a0 100644 --- a/src/tasks/worker.js +++ b/src/tasks/worker.js @@ -33,12 +33,14 @@ globalThis.onmessage = async ev => { init = imported.init; } ThreadPoolWorker = imported.ThreadPoolWorker; + + await init(module, memory); } else { init = globalThis["__WASMER_INTERNALS__"].init; ThreadPoolWorker = globalThis["__WASMER_INTERNALS__"].ThreadPoolWorker; + await init({ module: module, memory: memory }); } - await init({ module: module, memory: memory }); worker = new ThreadPoolWorker(id);