summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Console.cpp')
-rw-r--r--Userland/Libraries/LibJS/Console.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Console.cpp b/Userland/Libraries/LibJS/Console.cpp
index 165723e7c6..2e6be717e9 100644
--- a/Userland/Libraries/LibJS/Console.cpp
+++ b/Userland/Libraries/LibJS/Console.cpp
@@ -453,6 +453,12 @@ void Console::output_debug_message([[maybe_unused]] LogLevel log_level, [[maybe_
#endif
}
+void Console::report_exception(JS::Error const& exception, bool in_promise) const
+{
+ if (m_client)
+ m_client->report_exception(exception, in_promise);
+}
+
ThrowCompletionOr<String> Console::value_vector_to_string(MarkedVector<Value> const& values)
{
auto& vm = realm().vm();