Index: test/cctest/wasm/wasm-run-utils.h |
diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h |
index 1c2b8e84631cfc7da846c17c9004623f43c7e751..c34b790a3e81cd268b5c1019cd7d3a32ddaa256b 100644 |
--- a/test/cctest/wasm/wasm-run-utils.h |
+++ b/test/cctest/wasm/wasm-run-utils.h |
@@ -208,7 +208,8 @@ class TestingModule : public ModuleEnv { |
Handle<String> name = isolate_->factory()->NewStringFromStaticChars("main"); |
Handle<JSObject> module_object = Handle<JSObject>(0, isolate_); |
Handle<Code> code = instance->function_code[index]; |
- WasmJs::InstallWasmFunctionMap(isolate_, isolate_->native_context()); |
+ WasmJs::InstallWasmFunctionMapIfNeeded(isolate_, |
+ isolate_->native_context()); |
Handle<Code> ret_code = |
compiler::CompileJSToWasmWrapper(isolate_, this, code, index); |
FunctionSig* funcSig = this->module->functions[index].sig; |