aboutsummaryrefslogtreecommitdiff
path: root/cmd/hlang
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-02-11 13:57:40 -0500
committerXe Iaso <me@xeiaso.net>2023-02-11 13:57:40 -0500
commite6b370fb44a6442931c9d25cc3bc0e7e1abaab66 (patch)
tree0b805c0d58b5dd53f48b1c9091ababbd67e02ed7 /cmd/hlang
parent8c1b548fce67777ce59a16534037184b7f86a3af (diff)
downloadx-e6b370fb44a6442931c9d25cc3bc0e7e1abaab66.tar.xz
x-e6b370fb44a6442931c9d25cc3bc0e7e1abaab66.zip
cmd/hlang/run: fix API changes in wazero
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/hlang')
-rw-r--r--cmd/hlang/run/run.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/hlang/run/run.go b/cmd/hlang/run/run.go
index 5526df4..79260a5 100644
--- a/cmd/hlang/run/run.go
+++ b/cmd/hlang/run/run.go
@@ -32,7 +32,7 @@ func Run(bin []byte) (*ExecResult, error) {
NewFunctionBuilder().
WithGoFunction(api.GoFunc(p.Putchar), []api.ValueType{api.ValueTypeI32}, nil).
Export("h").
- Instantiate(ctx, r)
+ Instantiate(ctx)
if err != nil {
return nil, err
}