I don't know much about WASM, but how does this work with shared libraries? Is it even possible to call a shared library without any safety guarantees?
The host can be the browser when running on the browser, or it can be one of the WASM runtimes (wasmtime, wasmer, Lucet)