1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

LibJS: Add Object::own_properties() convenience accessor

This commit is contained in:
Andreas Kling 2020-03-26 12:19:01 +01:00
parent d7073b9f3e
commit 68dec2801d

View file

@ -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 };