wasi.initialize(instance)


尝试通过调用 _initialize() 导出(如果存在)将 instance 初始化为 WASI 反应器。 如果 instance 包含 _start() 导出,则抛出异常。

initialize() 要求 instance 导出名为 memoryWebAssembly.Memory。 如果 instance 没有 memory 导出,则抛出异常。

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

Attempt to initialize instance as a WASI reactor by invoking its _initialize() export, if it is present. If instance contains a _start() export, then an exception is thrown.

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

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