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/qv4qobjectwrapper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4qobjectwrapper.cpp') diff --git a/src/qml/jsruntime/qv4qobjectwrapper.cpp b/src/qml/jsruntime/qv4qobjectwrapper.cpp index 23a268b8b9..5800b08ef4 100644 --- a/src/qml/jsruntime/qv4qobjectwrapper.cpp +++ b/src/qml/jsruntime/qv4qobjectwrapper.cpp @@ -823,8 +823,9 @@ PropertyKey QObjectWrapperOwnPropertyKeyIterator::next(const Object *o, Property return ObjectOwnPropertyKeyIterator::next(o, pd, attrs); } -OwnPropertyKeyIterator *QObjectWrapper::virtualOwnPropertyKeys(const Object *) +OwnPropertyKeyIterator *QObjectWrapper::virtualOwnPropertyKeys(const Object *m, Value *target) { + *target = *m; return new QObjectWrapperOwnPropertyKeyIterator; } -- cgit v1.2.3