wasi.start(instance)


新增于: v13.3.0, v12.16.0

尝试通过调用 _start() 导出来开始执行 instance 作为 WASI 命令。如果 instance 不包含 _start() 导出,或者 instance 包含 _initialize() 导出,则抛出异常。

\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() 要求 instance 导出名为 memoryWebAssembly.Memory。如果 instance 没有 memory 导出,则抛出异常。

\start() requires that instance exports a WebAssembly.Memory named memory. If instance does not have a memory export an exception is thrown.

如果 start() 被多次调用,则抛出异常。

\If start() is called more than once, an exception is thrown.

AltStyle によって変換されたページ (->オリジナル) /