mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibJS: Use correct |this| value when getting/setting native properties
This commit is contained in:
parent
8705c5ffeb
commit
7dc78b5e38
4 changed files with 15 additions and 15 deletions
|
@ -43,8 +43,8 @@ public:
|
|||
Value get(const FlyString& property_name) const;
|
||||
void put(const FlyString& property_name, Value);
|
||||
|
||||
virtual Optional<Value> get_own_property(const FlyString& property_name) const;
|
||||
virtual bool put_own_property(const FlyString& property_name, Value);
|
||||
virtual Optional<Value> get_own_property(const Object& this_object, const FlyString& property_name) const;
|
||||
virtual bool put_own_property(Object& this_object, const FlyString& property_name, Value);
|
||||
|
||||
void put_native_function(const FlyString& property_name, AK::Function<Value(Object*, Vector<Value>)>);
|
||||
void put_native_property(const FlyString& property_name, AK::Function<Value(Object*)> getter, AK::Function<void(Object*, Value)> setter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue