wasi.start(instance)
instance
<WebAssembly.Instance>
尝试通过调用 _start()
导出来开始执行 instance
作为 WASI 命令。
如果 instance
不包含 _start()
导出,或者 instance
包含 _initialize()
导出,则抛出异常。
start()
要求 instance
导出名为 memory
的 WebAssembly.Memory
。
如果 instance
没有 memory
导出,则抛出异常。
如果 start()
被多次调用,则抛出异常。
instance
<WebAssembly.Instance>
Attempt to begin execution of instance
as a WASI command by invoking its
_start()
export. If instance
does not contain a _start()
export, or if
instance
contains an _initialize()
export, then an exception is thrown.
start()
requires that instance
exports a WebAssembly.Memory
named
memory
. If instance
does not have a memory
export an exception is thrown.
If start()
is called more than once, an exception is thrown.