Index: src/wasm/module-decoder.cc |
diff --git a/src/wasm/module-decoder.cc b/src/wasm/module-decoder.cc |
index 6aee4467fdc534762ef6dc48e410c9b054574447..9aaf612134a6a97c90d287e8efeb3b1ebcbd2b72 100644 |
--- a/src/wasm/module-decoder.cc |
+++ b/src/wasm/module-decoder.cc |
@@ -313,7 +313,7 @@ class ModuleDecoder : public Decoder { |
static_cast<uint32_t>(module->function_tables.size()); |
module->function_tables.push_back( |
{0, 0, std::vector<int32_t>(), true, false, SignatureMap()}); |
- expect_u8("element type", 0x20); |
+ expect_u8("element type", kWasmAnyFunctionTypeForm); |
WasmIndirectFunctionTable* table = &module->function_tables.back(); |
consume_resizable_limits("element count", "elements", kMaxTableSize, |
&table->size, &table->max_size); |