1
Fork 0
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:
Luke Wilde 2022-06-27 19:53:22 +01:00 committed by Linus Groh
parent 62491cda0b
commit 1e36224321
3 changed files with 23 additions and 12 deletions

View file

@ -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>