mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:58:11 +00:00
LibWeb: Print unhandled rejections the same way as unhandled exceptions
This commit is contained in:
parent
62491cda0b
commit
1e36224321
3 changed files with 23 additions and 12 deletions
|
@ -10,6 +10,12 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
enum class ErrorInPromise {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
void print_error_from_value(JS::Value, ErrorInPromise);
|
||||
void report_exception(JS::Completion const&);
|
||||
|
||||
template<typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue