mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibJS: Add Object.{keys,values,entries}()
This commit is contained in:
parent
36a5e0be4b
commit
683a0696f3
Notes:
sideshowbarker
2024-07-19 07:10:01 +09:00
Author: https://github.com/mattco98
Commit: 683a0696f3
Pull-request: https://github.com/SerenityOS/serenity/pull/2027
Reviewed-by: https://github.com/awesomekling
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