diff options
Diffstat (limited to 'deps/v8/test/fuzzer/parser.cc')
-rw-r--r-- | deps/v8/test/fuzzer/parser.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/v8/test/fuzzer/parser.cc b/deps/v8/test/fuzzer/parser.cc index c411d933d65..691fcf67e6f 100644 --- a/deps/v8/test/fuzzer/parser.cc +++ b/deps/v8/test/fuzzer/parser.cc @@ -80,7 +80,11 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { v8::internal::Handle<v8::internal::Script> script = factory->NewScript(source.ToHandleChecked()); - v8::internal::ParseInfo info(i_isolate, *script); + v8::internal::UnoptimizedCompileState state(i_isolate); + v8::internal::UnoptimizedCompileFlags flags = + v8::internal::UnoptimizedCompileFlags::ForScriptCompile(i_isolate, + *script); + v8::internal::ParseInfo info(i_isolate, flags, &state); if (!v8::internal::parsing::ParseProgram(&info, script, i_isolate)) { i_isolate->OptionalRescheduleException(true); } |