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
More detail on the error: Uncaught (in promise) TypeError: WebAssembly.instantiate(): Import #0 "wasi_snapshot_preview1": module is not an object or function
The wasi_snapshot_preview1 is new to 0.4.x. I can see it, along with some other hooks, in a hex dump of hb.wasm,
But it might be due to including something that needs a standard file I/O hook, or some other environment hook for standard system calls. action_abort and action_terminate seem to be linked to this (I added --profiling-funcs to the em++ parameters then used wasm-objdump -d hb.wasm > hb.wasm.dis to get a disassembly)
I have projects that work with HBJS 0.3.6 (hbjs.js and hb.wasm).
However, updating both hbjs.js + hb.wasm to version 0.4.0+ produces an error:
This even happens with the repository
examples/nohbjs.html
andexamples/hbjs.example.html
with no modifications.Details:
WebAssembly.instantiate
as in HBJSDemo/index.html
WebAssembly.instantateStreaming
method outlined in README.mdAny clues would be very helpful! Thank you 😊
The text was updated successfully, but these errors were encountered: