diff options
Diffstat (limited to 'src/qml/jsruntime/qv4object.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4object.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/qml/jsruntime/qv4object.cpp b/src/qml/jsruntime/qv4object.cpp index b6446d39d1..ea374e43c0 100644 --- a/src/qml/jsruntime/qv4object.cpp +++ b/src/qml/jsruntime/qv4object.cpp @@ -364,18 +364,17 @@ PropertyKey ObjectOwnPropertyKeyIterator::next(const Object *o, Property *pd, Pr while (memberIndex < o->internalClass()->size) { PropertyKey n = o->internalClass()->nameMap.at(memberIndex); ++memberIndex; - if (!n.isStringOrSymbol()) { + if (!n.isStringOrSymbol()) // accessor properties have a dummy entry with n == 0 continue; - } - if (!iterateOverSymbols && n.isSymbol()) { + if (!iterateOverSymbols && n.isSymbol()) continue; - } - if (iterateOverSymbols && !n.isSymbol()) { + if (iterateOverSymbols && !n.isSymbol()) continue; - } InternalClassEntry e = o->internalClass()->find(n); + if (!e.isValid()) + continue; if (pd) { pd->value = *o->propertyData(e.index); if (e.attributes.isAccessor()) |