Holds wasm.Code as values on wasm.Module (#1243)

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
Takeshi Yoneda
2023-03-14 22:45:54 -07:00
committed by GitHub
parent 12e80b4bc5
commit e17a85146a
36 changed files with 302 additions and 298 deletions

View File

@@ -237,7 +237,7 @@ func (h *hostFunctionBuilder) WithGoFunction(fn api.GoFunction, params, results
h.fn = &wasm.HostFunc{
ParamTypes: params,
ResultTypes: results,
Code: &wasm.Code{GoFunc: fn},
Code: wasm.Code{GoFunc: fn},
}
return h
}
@@ -247,7 +247,7 @@ func (h *hostFunctionBuilder) WithGoModuleFunction(fn api.GoModuleFunction, para
h.fn = &wasm.HostFunc{
ParamTypes: params,
ResultTypes: results,
Code: &wasm.Code{GoFunc: fn},
Code: wasm.Code{GoFunc: fn},
}
return h
}