From 11b40dbcf5f19971aa601099c1be26a77b8194eb Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Fri, 3 Mar 2023 18:04:58 +0000 Subject: LibWeb/WebIDL: Store SimpleException message as a String{,View} variant --- Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp') diff --git a/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp b/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp index 991700d076..ba0fddd7a1 100644 --- a/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp +++ b/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp @@ -216,10 +216,7 @@ WebIDL::ExceptionOr DOMTokenList::supports([[maybe_unused]] StringView tok // FIXME: Implement this fully when any use case defines supported tokens. // 1. If the associated attribute’s local name does not define supported tokens, throw a TypeError. - return WebIDL::SimpleException { - WebIDL::SimpleExceptionType::TypeError, - DeprecatedString::formatted("Attribute {} does not define any supported tokens", m_associated_attribute) - }; + return WebIDL::SimpleException { WebIDL::SimpleExceptionType::TypeError, String::formatted("Attribute {} does not define any supported tokens", m_associated_attribute).release_value_but_fixme_should_propagate_errors() }; // 2. Let lowercase token be a copy of token, in ASCII lowercase. // 3. If lowercase token is present in supported tokens, return true. -- cgit v1.2.3