package emscripten
import "github.com/tetratelabs/wazero/experimental/emscripten"
Index ¶
- func InstantiateForModule(ctx context.Context, r wazero.Runtime, guest wazero.CompiledModule) (api.Closer, error)
- func NewFunctionExporterForModule(guest wazero.CompiledModule) (emscripten.FunctionExporter, error)
Functions ¶
func InstantiateForModule ¶
func InstantiateForModule(ctx context.Context, r wazero.Runtime, guest wazero.CompiledModule) (api.Closer, error)
InstantiateForModule instantiates a module named "env" populated with any known functions used in emscripten.
func NewFunctionExporterForModule ¶
func NewFunctionExporterForModule(guest wazero.CompiledModule) (emscripten.FunctionExporter, error)
NewFunctionExporterForModule returns a guest-specific FunctionExporter, populated with any known functions used in emscripten.
Source Files ¶
- Version
- v1.0.3
- Published
- Apr 22, 2023
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 1 minute ago –
Tools for package owners.