fix: async loading quirk in firefox js engine

This commit is contained in:
Derrick Hammer 2023-07-18 10:17:49 -04:00
parent 37fd7543af
commit ea9048868a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -12,5 +12,6 @@ export default async function (imports) {
// @ts-ignore
let wasm = await import("./wasm/bao.wasm?init");
wasm = wasm.default || wasm;
return (await wasm(imports)).instance;
wasm = await wasm(imports);
return wasm.instance;
}