wasi.start(instance)


尝试通过调用其 _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(),将抛出异常。

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