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