Holds function types as values, not ptrs in wasm.Module (#1227)

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
Takeshi Yoneda
2023-03-14 21:45:52 -07:00
committed by GitHub
parent aba4ede088
commit 350e81e632
38 changed files with 447 additions and 442 deletions

View File

@@ -508,7 +508,7 @@ func TestInterpreter_Compile(t *testing.T) {
e := et.NewEngine(api.CoreFeaturesV1).(*engine)
errModule := &wasm.Module{
TypeSection: []*wasm.FunctionType{{}},
TypeSection: []wasm.FunctionType{{}},
FunctionSection: []wasm.Index{0, 0, 0},
CodeSection: []*wasm.Code{
{Body: []byte{wasm.OpcodeEnd}},
@@ -530,7 +530,7 @@ func TestInterpreter_Compile(t *testing.T) {
e := et.NewEngine(api.CoreFeaturesV1).(*engine)
okModule := &wasm.Module{
TypeSection: []*wasm.FunctionType{{}},
TypeSection: []wasm.FunctionType{{}},
FunctionSection: []wasm.Index{0, 0, 0, 0},
CodeSection: []*wasm.Code{
{Body: []byte{wasm.OpcodeEnd}},