Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index 4fca4bb80a25c86c22fc3bc11976b3c3ecc63c13..0a35c6548d8741b45cd30cd5742d1ecac1700ac7 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -1984,7 +1984,7 @@ class WasmInstanceBuilder { |
module_->function_tables[exp.index]; |
if (table_instance.table_object.is_null()) { |
uint32_t maximum = |
- table.has_max ? table.max_size : kV8MaxWasmTableSize; |
+ table.has_max ? table.max_size : FLAG_wasm_max_table_size; |
table_instance.table_object = WasmTableObject::New( |
isolate_, table.min_size, maximum, &table_instance.js_wrappers); |
} |