Avoids allocation of exports map per instance (#1275)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
@@ -268,8 +268,8 @@ func TestModule_Global(t *testing.T) {
|
||||
Init: wasm.ConstantExpression{Opcode: wasm.OpcodeI64Const, Data: leb128.EncodeInt64(globalVal)},
|
||||
},
|
||||
},
|
||||
ExportSection: []wasm.Export{
|
||||
{Type: wasm.ExternTypeGlobal, Name: "global"},
|
||||
Exports: map[string]*wasm.Export{
|
||||
"global": {Type: wasm.ExternTypeGlobal, Name: "global"},
|
||||
},
|
||||
},
|
||||
expected: true,
|
||||
@@ -283,8 +283,8 @@ func TestModule_Global(t *testing.T) {
|
||||
Init: wasm.ConstantExpression{Opcode: wasm.OpcodeI64Const, Data: leb128.EncodeInt64(globalVal)},
|
||||
},
|
||||
},
|
||||
ExportSection: []wasm.Export{
|
||||
{Type: wasm.ExternTypeGlobal, Name: "global"},
|
||||
Exports: map[string]*wasm.Export{
|
||||
"global": {Type: wasm.ExternTypeGlobal, Name: "global"},
|
||||
},
|
||||
},
|
||||
expected: true,
|
||||
|
||||
Reference in New Issue
Block a user