1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

LibJS: Add Object.{keys,values,entries}()

This commit is contained in:
mattco98 2020-04-29 18:59:23 -07:00 committed by Andreas Kling
parent 36a5e0be4b
commit 683a0696f3
7 changed files with 250 additions and 0 deletions

View file

@ -61,6 +61,13 @@ public:
Value get_own_property(const Object& this_object, const FlyString& property_name) const;
enum class GetOwnPropertyMode {
Key,
Value,
KeyAndValue,
};
Value get_enumerable_own_properties(const Object& this_object, GetOwnPropertyMode) const;
enum class PutOwnPropertyMode {
Put,
DefineProperty,