mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:57:47 +00:00
LibJS: Add Object::own_properties() convenience accessor
This commit is contained in:
parent
d7073b9f3e
commit
68dec2801d
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_primitive(PreferredType preferred_type = PreferredType::Default) const;
|
||||||
virtual Value to_string() const;
|
virtual Value to_string() const;
|
||||||
|
|
||||||
|
const HashMap<FlyString, Value>& own_properties() const { return m_properties; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HashMap<FlyString, Value> m_properties;
|
HashMap<FlyString, Value> m_properties;
|
||||||
Object* m_prototype { nullptr };
|
Object* m_prototype { nullptr };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue