Skip to content

Commit

Permalink
Address deprecated wasm-bindgen init api (#13)
Browse files Browse the repository at this point in the history
* fix deprecated wasm-bindgen api

* resolve change request
  • Loading branch information
noname0310 authored Oct 3, 2024
1 parent 8bc4577 commit 1c8c7e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/workerHelpers.worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
// and temporary bugs so that you don't need to deal with them in your code.
import initWbg, { wbg_rayon_start_worker } from '../../../';

onmessage = async ({ data: { module, memory, receiver } }) => {
await initWbg(module, memory);
onmessage = async ({ data: { receiver, ...initData } }) => {
await initWbg(initData);
postMessage(true);
wbg_rayon_start_worker(receiver);
};

0 comments on commit 1c8c7e5

Please sign in to comment.