Commit 4cf5d200 authored by Clemens Backes's avatar Clemens Backes Committed by Commit Bot

[inspector][fuzzer] Don't exit on uncaught exceptions

For the fuzzer it's unwise to exit on uncaught exceptions, as this
terminates the whole fuzzing process. Just ignore those exceptions
instead.

Drive-by: Fix a typo.

R=szuend@chromium.org

Bug: chromium:1142437
Change-Id: Ided1c0f35840c158f157acd8c0bb1c12ecf8a37f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2526386
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Reviewed-by: 's avatarSimon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71059}
parent d9a0b7b1
...@@ -567,8 +567,9 @@ void FuzzInspector(const uint8_t* data, size_t size) { ...@@ -567,8 +567,9 @@ void FuzzInspector(const uint8_t* data, size_t size) {
IsolateData::SetupGlobalTasks frontend_extensions; IsolateData::SetupGlobalTasks frontend_extensions;
frontend_extensions.emplace_back(new UtilsExtension()); frontend_extensions.emplace_back(new UtilsExtension());
TaskRunner frontend_runner(std::move(frontend_extensions), kDoCatchExceptions, TaskRunner frontend_runner(std::move(frontend_extensions),
&ready_semaphore, nullptr, kNoInspector); kDontCatchExceptions, &ready_semaphore, nullptr,
kNoInspector);
ready_semaphore.Wait(); ready_semaphore.Wait();
int frontend_context_group_id = 0; int frontend_context_group_id = 0;
......
...@@ -29,7 +29,7 @@ void ReportUncaughtException(v8::Isolate* isolate, ...@@ -29,7 +29,7 @@ void ReportUncaughtException(v8::Isolate* isolate,
isolate, try_catch.Message() isolate, try_catch.Message()
->GetSourceLine(isolate->GetCurrentContext()) ->GetSourceLine(isolate->GetCurrentContext())
.ToLocalChecked()); .ToLocalChecked());
fprintf(stderr, "Unhandle exception: %s @%s[%d]\n", message.data(), fprintf(stderr, "Unhandled exception: %s @%s[%d]\n", message.data(),
source_line.data(), line); source_line.data(), line);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment