Set up WASI host bindings to instance
without calling initialize()
or start()
. This method is useful when the WASI module is instantiated in child threads for sharing the memory across threads.
finalizeBindings()
requires that either instance
exports a WebAssembly.Memory
named memory
or user specify a WebAssembly.Memory
object in options.memory
. If the memory
is invalid an exception is thrown.
start()
and initialize()
will call finalizeBindings()
internally. If finalizeBindings()
is called more than once, an exception is thrown.