mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibJS: Add Object::own_properties() convenience accessor
This commit is contained in:
parent
d7073b9f3e
commit
68dec2801d
Notes:
sideshowbarker
2024-07-19 08:07:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/68dec2801d0
1 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,8 @@ public:
|
|||
virtual Value to_primitive(PreferredType preferred_type = PreferredType::Default) const;
|
||||
virtual Value to_string() const;
|
||||
|
||||
const HashMap<FlyString, Value>& own_properties() const { return m_properties; }
|
||||
|
||||
private:
|
||||
HashMap<FlyString, Value> m_properties;
|
||||
Object* m_prototype { nullptr };
|
||||
|
|
Loading…
Add table
Reference in a new issue