return wasm object directly

This commit is contained in:
alu committed 2026-07-29 16:13:32 +00:00
1 parent f8f8636cc3
commit f53f344fb3
1 file changed
+1 -1
+1 -1
View File
@@ -560,7 +560,7 @@ export default function init (path) {
const wasm = obj.instance;
global.wfa = wasm
go.run(wasm);
res()
res(wasm)
}
if ('instantiateStreaming' in WebAssembly) {
WebAssembly.instantiateStreaming(fetch(path), go.importObject).then(function (obj) {