Holds function types as values, not ptrs in wasm.Module (#1227)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
@@ -48,7 +48,7 @@ func NewModuleBinary(moduleName string, proxyTarget wazero.CompiledModule) []byt
|
||||
}
|
||||
var cnt wasm.Index
|
||||
for _, def := range funcDefs {
|
||||
proxyModule.TypeSection = append(proxyModule.TypeSection, &wasm.FunctionType{
|
||||
proxyModule.TypeSection = append(proxyModule.TypeSection, wasm.FunctionType{
|
||||
Params: def.ParamTypes(), Results: def.ResultTypes(),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user