(path: string)
| 28 | } |
| 29 | |
| 30 | async function getCoreModule(path: string): Promise<WebAssembly.Module> { |
| 31 | const wasmPath = join(getWasmDir(), path); |
| 32 | const wasmBytes = new Uint8Array(await readFile(wasmPath)); |
| 33 | return WebAssembly.compile(wasmBytes); |
| 34 | } |
| 35 | |
| 36 | export async function importWasmModule(): Promise<RootType> { |
| 37 | if (wasmInstance) { |
nothing calls this directly
no test coverage detected