Removes usage of host functions with Wasm optocdes (#1241)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
@@ -237,7 +237,7 @@ func (h *hostFunctionBuilder) WithGoFunction(fn api.GoFunction, params, results
|
||||
h.fn = &wasm.HostFunc{
|
||||
ParamTypes: params,
|
||||
ResultTypes: results,
|
||||
Code: &wasm.Code{IsHostFunction: true, 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{IsHostFunction: true, GoFunc: fn},
|
||||
Code: &wasm.Code{GoFunc: fn},
|
||||
}
|
||||
return h
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user