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:
parent
36a5e0be4b
commit
683a0696f3
7 changed files with 250 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue