Index: test/cctest/wasm/wasm-run-utils.h |
diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h |
index d63586042adddbda5c43a1239b47fca7c7466516..4045356ff63def74cc5418c36277556c558d80ce 100644 |
--- a/test/cctest/wasm/wasm-run-utils.h |
+++ b/test/cctest/wasm/wasm-run-utils.h |
@@ -223,10 +223,12 @@ class TestingModule : public ModuleEnv { |
void AddIndirectFunctionTable(uint16_t* function_indexes, |
uint32_t table_size) { |
- module_.function_tables.push_back({table_size, table_size, |
+ module_.function_tables.push_back({table_size, table_size, true, |
std::vector<int32_t>(), false, false, |
SignatureMap()}); |
WasmIndirectFunctionTable& table = module_.function_tables.back(); |
+ table.min_size = table_size; |
+ table.max_size = table_size; |
for (uint32_t i = 0; i < table_size; ++i) { |
table.values.push_back(function_indexes[i]); |
table.map.FindOrInsert(module_.functions[function_indexes[i]].sig); |