mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibJS: Add Object::own_properties() convenience accessor
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user