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 c391cd82890d1705b11ea34b868ab73987dd194b..53549904012911fa85c0bcfb0e23b3f29dc03714 100644 |
--- a/test/cctest/wasm/wasm-run-utils.h |
+++ b/test/cctest/wasm/wasm-run-utils.h |
@@ -179,8 +179,8 @@ class TestingModule : public ModuleEnv { |
*v8::Local<v8::Function>::Cast(CompileRun(source)))); |
uint32_t index = AddFunction(sig, Handle<Code>::null()); |
Isolate* isolate = module->shared_isolate; |
- WasmName module_name = {"test", 4}; |
- WasmName function_name = {nullptr, 0}; |
+ WasmName module_name = ArrayVector("test"); |
+ WasmName function_name; |
Handle<Code> code = CompileWasmToJSWrapper(isolate, this, jsfunc, sig, |
module_name, function_name); |
instance->function_code[index] = code; |