Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Instantiate ¶
Instantiate instantiates the "env" module used by Emscripten into the runtime default namespace.
Notes ¶
- Closing the wazero.Runtime has the same effect as closing the result.
- To add more functions to the "env" module, use FunctionExporter.
- To instantiate into another wazero.Namespace, use FunctionExporter.
Types ¶
type FunctionExporter ¶
type FunctionExporter interface { // ExportFunctions builds functions to export with a wazero.HostModuleBuilder // named "env". ExportFunctions(builder wazero.HostModuleBuilder) }
FunctionExporter configures the functions in the "env" module used by Emscripten.
func NewFunctionExporter ¶
func NewFunctionExporter() FunctionExporter
NewFunctionExporter returns a FunctionExporter object with trace disabled.
Click to show internal directories.
Click to hide internal directories.