Index: test/fuzzer/wasm-asmjs.cc |
diff --git a/test/fuzzer/wasm-asmjs.cc b/test/fuzzer/wasm-asmjs.cc |
index 386edcd03507b5dbfe18d2a72a17c9a739d78600..1d9175ae30c82197e6a005aa5718a7b0da589355 100644 |
--- a/test/fuzzer/wasm-asmjs.cc |
+++ b/test/fuzzer/wasm-asmjs.cc |
@@ -32,9 +32,9 @@ 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, true); |
+ v8::internal::WasmJs::SetupIsolateForWasm(i_isolate); |
+ v8::internal::wasm::testing::CompileAndRunWasmModule( |
+ i_isolate, data, data + size, |
+ v8::internal::wasm::ModuleOrigin::kAsmJsOrigin); |
return 0; |
} |