diff options
Diffstat (limited to 'src/qml/jsruntime/qv4objectiterator.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4objectiterator.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4objectiterator.cpp b/src/qml/jsruntime/qv4objectiterator.cpp index f03c2d6b86..a9c9e817f7 100644 --- a/src/qml/jsruntime/qv4objectiterator.cpp +++ b/src/qml/jsruntime/qv4objectiterator.cpp @@ -70,7 +70,9 @@ Property *ObjectIterator::next(String **name, uint *index, PropertyAttributes *a if (current != object) { Property *pp; if (*name) { - pp = object->__getPropertyDescriptor__(*name); + Scope scope(object->engine()); + ScopedString n(scope, *name); + pp = object->__getPropertyDescriptor__(n); } else { assert (*index != UINT_MAX); pp = object->__getPropertyDescriptor__(*index); |
