Index: src/wasm/wasm-objects.cc |
diff --git a/src/wasm/wasm-objects.cc b/src/wasm/wasm-objects.cc |
index 1e6180ecfcf043a83479e75a6d0c505846559510..4e4bb05ae08fab9e530a704fe6031f9aef10bed2 100644 |
--- a/src/wasm/wasm-objects.cc |
+++ b/src/wasm/wasm-objects.cc |
@@ -737,6 +737,7 @@ Handle<WasmCompiledModule> WasmCompiledModule::New( |
Handle<WasmCompiledModule> compiled_module( |
reinterpret_cast<WasmCompiledModule*>(*ret), isolate); |
compiled_module->InitId(); |
+ compiled_module->set_num_imported_functions(0); |
compiled_module->set_shared(shared); |
compiled_module->set_native_context(isolate->native_context()); |
return compiled_module; |