Holds function types as values, not ptrs in wasm.Module (#1227)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
@@ -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}},
|
||||
|
||||
Reference in New Issue
Block a user