mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00: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: 2d7f50a
This commit is contained in:
parent
683d6b77dd
commit
a5f3a60ed5
Notes:
github-actions[bot]
2025-03-27 14:15:20 +00:00
Author: https://github.com/trflynn89
Commit: a5f3a60ed5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4117
Reviewed-by: https://github.com/gmta ✅
1 changed files with 4 additions and 4 deletions
|
@ -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
|
// 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);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue