diff options
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r-- | src/qml/jsruntime/qv4objectiterator.cpp | 5 | ||||
-rw-r--r-- | src/qml/jsruntime/qv4objectiterator_p.h | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/qml/jsruntime/qv4objectiterator.cpp b/src/qml/jsruntime/qv4objectiterator.cpp index d4e07e3d77..a6af3ecf9b 100644 --- a/src/qml/jsruntime/qv4objectiterator.cpp +++ b/src/qml/jsruntime/qv4objectiterator.cpp @@ -104,10 +104,7 @@ void ObjectIterator::next(Value *name, uint *index, Property *pd, PropertyAttrib return; } - if (flags & WithProtoChain) - current->setM(co->getPrototypeOf()); - else - current->setM(nullptr); + current->setM(nullptr); arrayIndex = 0; memberIndex = 0; diff --git a/src/qml/jsruntime/qv4objectiterator_p.h b/src/qml/jsruntime/qv4objectiterator_p.h index 20eb918e12..ca40748b79 100644 --- a/src/qml/jsruntime/qv4objectiterator_p.h +++ b/src/qml/jsruntime/qv4objectiterator_p.h @@ -61,8 +61,7 @@ struct Q_QML_EXPORT ObjectIteratorData { enum Flags { NoFlags = 0, - EnumerableOnly = 0x1, - WithProtoChain = 0x2, + EnumerableOnly = 0x1 }; ExecutionEngine *engine; |