Index: test/cctest/wasm/test-run-wasm-js.cc |
diff --git a/test/cctest/wasm/test-run-wasm-js.cc b/test/cctest/wasm/test-run-wasm-js.cc |
index 443a7832870f25bb1ab9b98d49d99c8daacc6461..1456850a02e7b4333cbcacf5fed0866afb1513b4 100644 |
--- a/test/cctest/wasm/test-run-wasm-js.cc |
+++ b/test/cctest/wasm/test-run-wasm-js.cc |
@@ -56,8 +56,10 @@ uint32_t AddJsFunction(TestingModule* module, FunctionSig* sig, |
module->AddFunction(sig, Handle<Code>::null()); |
uint32_t index = static_cast<uint32_t>(module->module->functions.size() - 1); |
Isolate* isolate = CcTest::InitIsolateOnce(); |
- Handle<Code> code = |
- CompileWasmToJSWrapper(isolate, module, jsfunc, sig, "test", nullptr); |
+ WasmName module_name = {"test", 4}; |
+ WasmName function_name = {nullptr, 0}; |
+ Handle<Code> code = CompileWasmToJSWrapper(isolate, module, jsfunc, sig, |
+ module_name, function_name); |
module->instance->function_code[index] = code; |
return index; |
} |