summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2023-02-28 00:05:39 +0000
committerAndreas Kling <kling@serenityos.org>2023-02-28 12:36:14 +0100
commit54f58e26625126fc72df09b257f0f835967869e5 (patch)
tree011d6a46d21817e0418f30d5ea2d5bcaddbb3be4 /Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp
parent7e76a51cb058bfc8c3074eab35a88609d6b80bf7 (diff)
downloadserenity-54f58e26625126fc72df09b257f0f835967869e5.zip
LibWeb: Restore proper functionality of legacy platform objects
With the GC heap conversion, the functionality of legacy platform objects was broken. This is because the generated implementation of one of them was used for all of them, removing functionality such as deletion. This re-adds all functionality, where questions such as "does the object support indexed properties?" is instead answered by virtual functions instead of by the IDL generator checking the presence of certain keywords/attributes.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp')
-rw-r--r--Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp b/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp
index aad7f31c78..991700d076 100644
--- a/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp
+++ b/Userland/Libraries/LibWeb/DOM/DOMTokenList.cpp
@@ -268,7 +268,7 @@ void DOMTokenList::run_update_steps()
MUST(associated_element->set_attribute(m_associated_attribute, value()));
}
-JS::Value DOMTokenList::item_value(size_t index) const
+WebIDL::ExceptionOr<JS::Value> DOMTokenList::item_value(size_t index) const
{
auto const& string = item(index);
if (string.is_null())