| Index: test/fuzzer/wasm.cc
|
| diff --git a/test/fuzzer/wasm.cc b/test/fuzzer/wasm.cc
|
| index 02bc7149f9e6624315953aa5d602188a3755c4c7..ba202988f5d67901c7c38f978264a50138c268a2 100644
|
| --- a/test/fuzzer/wasm.cc
|
| +++ b/test/fuzzer/wasm.cc
|
| @@ -32,9 +32,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
| v8::HandleScope handle_scope(isolate);
|
| v8::Context::Scope context_scope(support->GetContext());
|
| v8::TryCatch try_catch(isolate);
|
| - v8::internal::WasmJs::InstallWasmFunctionMap(i_isolate,
|
| - i_isolate->native_context());
|
| - v8::internal::wasm::testing::CompileAndRunWasmModule(i_isolate, data,
|
| - data + size, false);
|
| + v8::internal::WasmJs::SetupIsolateForWasm(i_isolate);
|
| + v8::internal::wasm::testing::CompileAndRunWasmModule(
|
| + i_isolate, data, data + size, v8::internal::wasm::kWasmOrigin);
|
| return 0;
|
| }
|
|
|