mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 10:36:02 +00:00
LibJS: Make put_own_property_by_index closer to spec
Most of the code is taken from put_own_property however the attributes need to be handled slightly differently it seems
This commit is contained in:
parent
a770c26d54
commit
733e8472fa
Notes:
sideshowbarker
2024-07-18 11:39:23 +09:00
Author: https://github.com/davidot
Commit: 733e8472fa
Pull-request: https://github.com/SerenityOS/serenity/pull/8191
4 changed files with 117 additions and 14 deletions
|
@ -61,6 +61,8 @@ public:
|
|||
bool operator==(const PropertyAttributes& other) const { return m_bits == other.m_bits; }
|
||||
bool operator!=(const PropertyAttributes& other) const { return m_bits != other.m_bits; }
|
||||
|
||||
PropertyAttributes overwrite(PropertyAttributes attr) const;
|
||||
|
||||
u8 bits() const { return m_bits; }
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue