| Index: src/wasm/wasm-module.cc
 | 
| diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
 | 
| index fbe9a91c1a130ead3b125dd1b5f1e5b21fe31510..8fd2b64845376490881ec6aa79ad2483f40d2109 100644
 | 
| --- a/src/wasm/wasm-module.cc
 | 
| +++ b/src/wasm/wasm-module.cc
 | 
| @@ -1828,6 +1828,13 @@ class InstantiationHelper {
 | 
|                              module_name, import_name);
 | 
|              return -1;
 | 
|            }
 | 
| +          if (FLAG_fast_validate_asm) {
 | 
| +            if (module_->globals[import.index].type == kWasmI32) {
 | 
| +              value = Object::ToInt32(isolate_, value).ToHandleChecked();
 | 
| +            } else {
 | 
| +              value = Object::ToNumber(value).ToHandleChecked();
 | 
| +            }
 | 
| +          }
 | 
|            if (!value->IsNumber()) {
 | 
|              ReportLinkError("global import must be a number", index,
 | 
|                              module_name, import_name);
 | 
| 
 |