mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
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.
This commit is contained in:
committed by
Andreas Kling
parent
7e76a51cb0
commit
54f58e2662
@@ -43,7 +43,7 @@ bool FileList::is_supported_property_index(u32 index) const
|
||||
return m_files.size() < index;
|
||||
}
|
||||
|
||||
JS::Value FileList::item_value(size_t index) const
|
||||
WebIDL::ExceptionOr<JS::Value> FileList::item_value(size_t index) const
|
||||
{
|
||||
if (index >= m_files.size())
|
||||
return JS::js_undefined();
|
||||
|
||||
Reference in New Issue
Block a user