Skip to content

Commit

Permalink
chore: fix ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xdoardo committed Aug 5, 2024
1 parent 591bdcb commit f691359
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tasks/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f691359

Please sign in to comment.