class

Wasmer::Instance

Inherits Reference / Object

A WebAssembly Instance is a stateful, executable instance of a WebAssembly [Module].

Instance objects contain all the exported WebAssembly functions, memories, tables and globals that allow interacting with WebAssembly.

Specification: https://webassembly.github.io/spec/core/exec/runtime.html#module-instances

Constructors

new(mod : Module, imports : ImportObject)

Instantiates a new Instance It takes two arguments, the Module and an ImportObject Note: Instantiating a module may raise TrapException if the module's start function traps.

Source
new(mod : Module)
Source

Instance methods

exports
Source

Macros

method_missing(call)
Source