You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constglobal=newWebAssembly.Global({value:'i32',mutable:true},0);constmem=newWebAssembly.Memory({initial:10,maximum:100});letwasmImports={js: { global, mem },};asyncfunctionmain(){console.log(" ok 1");letbytes=Deno.readFileSync('./global.wasm');console.log(" ok 2");window.wasm=awaitWebAssembly.instantiate(bytes,wasmImports)console.log(" ok 3");}main();
It will never reach "ok 3"
The file global.wasm is produced from the following file global.wat:
Debugging further reveals that setting the V8 flag --no-wasm-async-compilation will make this work properly. I think that v8::platform::PumpMessageLoop() needs to be called in order to support async compilation.
Here's an example program:
It will never reach "ok 3"
The file
global.wasm
is produced from the following fileglobal.wat
:by running
wat2wasm global.wat
The text was updated successfully, but these errors were encountered: