| Index: src/wasm/wasm-module.cc
|
| diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
|
| index 79b99fe04d90f0618cfdf557ff3dd10f14809d34..e8cb26b1ceed6b1fe03083c660884a338b62d09b 100644
|
| --- a/src/wasm/wasm-module.cc
|
| +++ b/src/wasm/wasm-module.cc
|
| @@ -1289,7 +1289,8 @@ class WasmInstanceBuilder {
|
| }
|
|
|
| // Look up the module first.
|
| - MaybeHandle<Object> result = Object::GetProperty(ffi_, module_name);
|
| + MaybeHandle<Object> result =
|
| + Object::GetPropertyOrElement(ffi_, module_name);
|
| if (result.is_null()) {
|
| return ReportFFIError("module not found", index, module_name,
|
| import_name);
|
| @@ -1304,7 +1305,8 @@ class WasmInstanceBuilder {
|
| module_name, import_name);
|
| }
|
|
|
| - result = Object::GetProperty(module, import_name.ToHandleChecked());
|
| + result =
|
| + Object::GetPropertyOrElement(module, import_name.ToHandleChecked());
|
| if (result.is_null()) {
|
| return ReportFFIError("import not found", index, module_name,
|
| import_name);
|
|
|