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
commit a5f3a60ed5
Notes: github-actions[bot] 2025-03-27 14:15:20 +00:00

View file

@ -1001,12 +1001,12 @@ 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 // FIXME: 3. If notHandled is true, then report exception for workerObject's relevant global object with
// omitError set to true. // omitError set to true.
} }
} // 3. Otherwise, the user agent may report exception to a developer console.
// 8. Otherwise, the user agent may report exception to a developer console.
else { else {
report_exception_to_console(exception, realm, ErrorInPromise::No); report_exception_to_console(exception, realm, ErrorInPromise::No);
} }
} }
}
// https://w3c.github.io/webcrypto/#dom-windoworworkerglobalscope-crypto // https://w3c.github.io/webcrypto/#dom-windoworworkerglobalscope-crypto
GC::Ref<Crypto::Crypto> WindowOrWorkerGlobalScopeMixin::crypto() GC::Ref<Crypto::Crypto> WindowOrWorkerGlobalScopeMixin::crypto()