mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-20 01:11:07 +00:00
LibJS: Renamed Object::GetOwnPropertyReturnMode to Object::PropertyKind
This enum will be used by iterators, so it makes sense to use a more general name.
This commit is contained in:
parent
e650be98a1
commit
51bfc6c6b3
Notes:
sideshowbarker
2024-07-19 04:56:45 +09:00
Author: https://github.com/mattco98
Commit: 51bfc6c6b3
Pull-request: https://github.com/SerenityOS/serenity/pull/2751
Reviewed-by: https://github.com/linusg ✅
5 changed files with 14 additions and 14 deletions
|
@ -68,7 +68,7 @@ public:
|
|||
|
||||
virtual bool inherits(const StringView& class_name) const { return class_name == this->class_name(); }
|
||||
|
||||
enum class GetOwnPropertyReturnMode {
|
||||
enum class PropertyKind {
|
||||
Key,
|
||||
Value,
|
||||
KeyAndValue,
|
||||
|
@ -97,7 +97,7 @@ public:
|
|||
virtual bool put(const PropertyName&, Value, Value receiver = {});
|
||||
|
||||
Value get_own_property(const Object& this_object, PropertyName, Value receiver) const;
|
||||
Value get_own_properties(const Object& this_object, GetOwnPropertyReturnMode, bool only_enumerable_properties = false, GetOwnPropertyReturnType = GetOwnPropertyReturnType::StringOnly) const;
|
||||
Value get_own_properties(const Object& this_object, PropertyKind, bool only_enumerable_properties = false, GetOwnPropertyReturnType = GetOwnPropertyReturnType::StringOnly) const;
|
||||
virtual Optional<PropertyDescriptor> get_own_property_descriptor(const PropertyName&) const;
|
||||
Value get_own_property_descriptor_object(const PropertyName&) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue