diff --git a/Userland/Libraries/LibWeb/WebIDL/ExceptionOr.h b/Userland/Libraries/LibWeb/WebIDL/ExceptionOr.h index b27a506dcf..cb0eaa52d0 100644 --- a/Userland/Libraries/LibWeb/WebIDL/ExceptionOr.h +++ b/Userland/Libraries/LibWeb/WebIDL/ExceptionOr.h @@ -110,6 +110,12 @@ public: return !m_exception.template has(); } + ValueType release_value_but_fixme_should_propagate_errors() + { + VERIFY(!is_error()); + return release_value(); + } + // These are for compatibility with the TRY() macro in AK. [[nodiscard]] bool is_error() const { return is_exception(); } Variant, JS::Completion> release_error() { return exception(); }