mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibJS: Use correct |this| value when getting/setting native properties
This commit is contained in:
parent
8705c5ffeb
commit
7dc78b5e38
Notes:
sideshowbarker
2024-07-19 08:09:53 +09:00
Author: https://github.com/awesomekling
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