Skip to content

Commit

Permalink
Update WASM initialization to avoid a warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Feb 2, 2025
1 parent 5577269 commit 8948b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wasm-package/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function initWrapper(): Promise<void> {
const wasmUint8Array = (
await import("../../.temp/rust-wasm/twsearch_wasm_bg.wasm")
).default as unknown as Uint8Array;
await init(wasmUint8Array.buffer as BufferSource);
await init({ module_or_path: wasmUint8Array.buffer as BufferSource });
})());
}

Expand Down

0 comments on commit 8948b48

Please sign in to comment.