mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:57:35 +00:00
LibJS: Handle "receiver" argument in Reflect.{get,set}()
This commit is contained in:
parent
f08aa6324e
commit
afcfea2001
7 changed files with 60 additions and 17 deletions
|
@ -84,14 +84,14 @@ public:
|
|||
|
||||
GlobalObject& global_object() const { return shape().global_object(); }
|
||||
|
||||
virtual Value get(PropertyName) const;
|
||||
virtual Value get(PropertyName, Value receiver = {}) const;
|
||||
|
||||
virtual bool has_property(PropertyName) const;
|
||||
bool has_own_property(PropertyName) const;
|
||||
|
||||
virtual bool put(PropertyName, Value);
|
||||
virtual bool put(PropertyName, Value, Value receiver = {});
|
||||
|
||||
Value get_own_property(const Object& this_object, PropertyName) const;
|
||||
Value get_own_property(const Object& this_object, PropertyName, Value receiver) const;
|
||||
Value get_own_properties(const Object& this_object, GetOwnPropertyMode, bool only_enumerable_properties = false) const;
|
||||
virtual Optional<PropertyDescriptor> get_own_property_descriptor(PropertyName) const;
|
||||
Value get_own_property_descriptor_object(PropertyName) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue