[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: Simon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71059}
This commit is contained in:
Clemens Backes 2020-11-09 15:18:44 +01:00 committed by Commit Bot
parent d9a0b7b11e
commit 4cf5d200ab
2 changed files with 4 additions and 3 deletions

View File

@ -567,8 +567,9 @@ void FuzzInspector(const uint8_t* data, size_t size) {
IsolateData::SetupGlobalTasks frontend_extensions;
frontend_extensions.emplace_back(new UtilsExtension());
TaskRunner frontend_runner(std::move(frontend_extensions), kDoCatchExceptions,
&ready_semaphore, nullptr, kNoInspector);
TaskRunner frontend_runner(std::move(frontend_extensions),
kDontCatchExceptions, &ready_semaphore, nullptr,
kNoInspector);
ready_semaphore.Wait();
int frontend_context_group_id = 0;

View File

@ -29,7 +29,7 @@ void ReportUncaughtException(v8::Isolate* isolate,
isolate, try_catch.Message()
->GetSourceLine(isolate->GetCurrentContext())
.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);
}