Adds MustInstantiate to host imports (#814)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
@@ -34,9 +34,7 @@ func main() {
|
||||
|
||||
// Instantiate WASI, which implements host functions needed for TinyGo to
|
||||
// implement `panic`.
|
||||
if _, err := wasi_snapshot_preview1.Instantiate(ctx, r); err != nil {
|
||||
log.Panicln(err)
|
||||
}
|
||||
wasi_snapshot_preview1.MustInstantiate(ctx, r)
|
||||
|
||||
// Instantiate the guest Wasm into the same runtime. It exports the `add`
|
||||
// function, implemented in WebAssembly.
|
||||
|
||||
Reference in New Issue
Block a user