LibWeb: Report unhandled exceptions to the developer console

This was a spec bug which led to us reporting handled (rather than
unhandled) exceptions.

See: 2d7f50a
This commit is contained in:
Timothy Flynn 2025-03-26 18:50:46 -04:00 committed by Jelle Raaijmakers
parent 683d6b77dd
commit a5f3a60ed5
Notes: github-actions[bot] 2025-03-27 14:15:20 +00:00

View file

@ -1001,10 +1001,10 @@ void WindowOrWorkerGlobalScopeMixin::report_an_exception(JS::Value exception, Om
// FIXME: 3. If notHandled is true, then report exception for workerObject's relevant global object with
// omitError set to true.
}
}
// 8. Otherwise, the user agent may report exception to a developer console.
else {
report_exception_to_console(exception, realm, ErrorInPromise::No);
// 3. Otherwise, the user agent may report exception to a developer console.
else {
report_exception_to_console(exception, realm, ErrorInPromise::No);
}
}
}