mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Report unhandled exceptions to the developer console
This was a spec bug which led to us reporting handled (rather than unhandled) exceptions. See: https://github.com/whatwg/html/commit/2d7f50a
This commit is contained in:
parent
683d6b77dd
commit
a5f3a60ed5
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user