| Index: src/wasm/module-decoder.cc
|
| diff --git a/src/wasm/module-decoder.cc b/src/wasm/module-decoder.cc
|
| index 846da49bdb822a66eff15c9322b8226135e41a2b..542c47ca159c9836726ed92bf1b3f62e4bd5b9b0 100644
|
| --- a/src/wasm/module-decoder.cc
|
| +++ b/src/wasm/module-decoder.cc
|
| @@ -507,10 +507,9 @@ class ModuleDecoder : public Decoder {
|
| void DecodeFunctionTableInModule(WasmModule* module,
|
| WasmIndirectFunctionTable* table) {
|
| table->size = consume_u32v("function table entry count");
|
| - table->max_size = FLAG_wasm_jit_prototype ? consume_u32v() : table->size;
|
| + table->max_size = table->size;
|
|
|
| - if ((!FLAG_wasm_jit_prototype && table->max_size != table->size) ||
|
| - (FLAG_wasm_jit_prototype && table->max_size < table->size)) {
|
| + if (table->max_size != table->size) {
|
| error("invalid table maximum size");
|
| }
|
|
|
|
|