Ensures listeners only bound to compile time objects (#870)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
@@ -792,7 +792,7 @@ func TestModule_buildFunctions(t *testing.T) {
|
||||
|
||||
// Note: This only returns module-defined functions, not imported ones. That's why the index starts with 1, not 0.
|
||||
instance := &ModuleInstance{Name: "counter", TypeIDs: []FunctionTypeID{0}}
|
||||
instance.BuildFunctions(m, nil)
|
||||
instance.BuildFunctions(m)
|
||||
for i, f := range instance.Functions {
|
||||
require.Equal(t, i, f.Definition.Index())
|
||||
require.Equal(t, nopCode.Body, f.Body)
|
||||
|
||||
Reference in New Issue
Block a user