Index: test/fuzzer/wasm-code.cc |
diff --git a/test/fuzzer/wasm-code.cc b/test/fuzzer/wasm-code.cc |
index 13b665137d8df895c94ee70762dbc4bfa1f30899..7b2f3bd28dae9e2763f12f6788c2b248cf22c695 100644 |
--- a/test/fuzzer/wasm-code.cc |
+++ b/test/fuzzer/wasm-code.cc |
@@ -45,8 +45,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
v8::internal::wasm::WasmFunctionBuilder* f = |
builder.AddFunction(sigs.i_iii()); |
f->EmitCode(data, static_cast<uint32_t>(size)); |
- f->SetExported(); |
- f->SetName("main", 4); |
+ f->ExportAs(v8::internal::CStrVector("main")); |
ZoneBuffer buffer(&zone); |
builder.WriteTo(buffer); |