[Wasm] Fix running wasm in the browser
This commit is contained in:
@@ -150,7 +150,7 @@ fun generateJsWasmLoader(kind: WasmLoaderKind, wasmFilePath: String, externalJs:
|
|||||||
|
|
||||||
WasmLoaderKind.BROWSER ->
|
WasmLoaderKind.BROWSER ->
|
||||||
"""
|
"""
|
||||||
const { wasmInstance } = await WebAssembly.instantiateStreaming(fetch("$wasmFilePath"), { js_code });
|
const { instance: wasmInstance } = await WebAssembly.instantiateStreaming(fetch("$wasmFilePath"), { js_code });
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user