From 009a125d07448428a00abec70a894febe759adec Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sat, 8 Sep 2018 22:29:47 +0200 Subject: Fix ownKey iteration over Proxy objects Change-Id: I045a4844c06df9232cc8b04485ab0a39bb990e3f Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4object_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/qml/jsruntime/qv4object_p.h') diff --git a/src/qml/jsruntime/qv4object_p.h b/src/qml/jsruntime/qv4object_p.h index acd84cd66e..0a27993004 100644 --- a/src/qml/jsruntime/qv4object_p.h +++ b/src/qml/jsruntime/qv4object_p.h @@ -353,8 +353,8 @@ public: bool deleteProperty(PropertyKey id) { return vtable()->deleteProperty(this, id); } - OwnPropertyKeyIterator *ownPropertyKeys() const - { return vtable()->ownPropertyKeys(this); } + OwnPropertyKeyIterator *ownPropertyKeys(Value *target) const + { return vtable()->ownPropertyKeys(this, target); } qint64 getLength() const { return vtable()->getLength(this); } ReturnedValue instanceOf(const Value &var) const { return vtable()->instanceOf(this, var); } @@ -374,7 +374,7 @@ protected: static bool virtualPreventExtensions(Managed *); static Heap::Object *virtualGetPrototypeOf(const Managed *); static bool virtualSetPrototypeOf(Managed *, const Object *); - static OwnPropertyKeyIterator *virtualOwnPropertyKeys(const Object *m); + static OwnPropertyKeyIterator *virtualOwnPropertyKeys(const Object *m, Value *target); static qint64 virtualGetLength(const Managed *m); static ReturnedValue virtualInstanceOf(const Object *typeObject, const Value &var); -- cgit v1.2.3