mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +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
|
@ -45,8 +45,8 @@ private:
|
|||
virtual const char* class_name() const override { return "Array"; }
|
||||
virtual void visit_children(Cell::Visitor&) override;
|
||||
virtual bool is_array() const override { return true; }
|
||||
virtual Optional<Value> get_own_property(const FlyString& property_name) const override;
|
||||
virtual bool put_own_property(const FlyString& property_name, Value) override;
|
||||
virtual Optional<Value> get_own_property(const Object& this_object, const FlyString& property_name) const override;
|
||||
virtual bool put_own_property(Object& this_object, const FlyString& property_name, Value) override;
|
||||
|
||||
Vector<Value> m_elements;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue