From 1c8c7e575e14bf8ec7e2f621ca323d2aec20a1c0 Mon Sep 17 00:00:00 2001 From: noname Date: Fri, 4 Oct 2024 08:44:27 +0900 Subject: [PATCH] Address deprecated wasm-bindgen init api (#13) * fix deprecated wasm-bindgen api * resolve change request --- src/workerHelpers.worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/workerHelpers.worker.js b/src/workerHelpers.worker.js index 0e25f4b..1667eb7 100644 --- a/src/workerHelpers.worker.js +++ b/src/workerHelpers.worker.js @@ -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); };