Skip to main content

Module exec

Module exec 

Source
Expand description

Program instantiation, main invocation and JSON-encoded result capture.

Structs§

RunResult

Functions§

dispatch_main_async
instantiate_program_async
Instantiates the program’s module. A script’s top-level statements are its Wasm start function, so they run here rather than under dispatch_main_async. Arm the execution deadline before this call, and treat its error as main’s: it is shaped the same way.