| Index: src/wasm/module-compiler.cc
|
| diff --git a/src/wasm/module-compiler.cc b/src/wasm/module-compiler.cc
|
| index 3a988e69962eb31e3e9ddd5b1ea144ce1a654b35..16fefa16100179e18281d623a4a5e57822f5b8ee 100644
|
| --- a/src/wasm/module-compiler.cc
|
| +++ b/src/wasm/module-compiler.cc
|
| @@ -1340,7 +1340,7 @@ int InstanceBuilder::ProcessImports(Handle<FixedArray> code_table,
|
|
|
| if (table.has_max) {
|
| int64_t imported_max_size =
|
| - table_instance.table_object->maximum_length();
|
| + table_instance.table_object->maximum_length()->Number();
|
| if (imported_max_size < 0) {
|
| thrower_->LinkError(
|
| "table import %d has no maximum length, expected %d", index,
|
|
|