diff options
author | Linus Groh <mail@linusgroh.de> | 2023-03-03 18:04:58 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-03 19:50:36 +0000 |
commit | 11b40dbcf5f19971aa601099c1be26a77b8194eb (patch) | |
tree | 31a7f0bac699e7e2fca6c1570013148a7b024452 /Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp | |
parent | 1032ac2453e7c276152db1a5c9f9a55b377d7419 (diff) | |
download | serenity-11b40dbcf5f19971aa601099c1be26a77b8194eb.zip |
LibWeb/WebIDL: Store SimpleException message as a String{,View} variant
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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<bool> 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. |