summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/Array.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-24 14:46:05 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-24 16:14:10 +0100
commit7dc78b5e38b366502e1b0e514d4329d6d36fc317 (patch)
tree177a7e340b365286cf888133a22b6acf83f71446 /Libraries/LibJS/Runtime/Array.h
parent8705c5ffebf8fdf1d02f667f0f003188ca10c26c (diff)
downloadserenity-7dc78b5e38b366502e1b0e514d4329d6d36fc317.zip
LibJS: Use correct |this| value when getting/setting native properties
Diffstat (limited to 'Libraries/LibJS/Runtime/Array.h')
-rw-r--r--Libraries/LibJS/Runtime/Array.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/Array.h b/Libraries/LibJS/Runtime/Array.h
index 930b7a586c..4e9a56abae 100644
--- a/Libraries/LibJS/Runtime/Array.h
+++ b/Libraries/LibJS/Runtime/Array.h
@@ -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;
};