diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-05-31 14:54:40 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-06-04 13:02:35 +0000 |
commit | 8d69977ab1f7f2d5eb8a0ce518071afe6a62894f (patch) | |
tree | 0e2db4b65a2b5c4a14ea706ef96064d7af0f98ca /src/qml/jsruntime/qv4object.cpp | |
parent | bdb8cf49daf4a1c7dfb9bd9caf14e19e3aa66293 (diff) |
skip Symbol properties in for-in loops
Change-Id: Id161269329d3cd34357580730999e4dee5b0135f
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4object.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4object.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4object.cpp b/src/qml/jsruntime/qv4object.cpp index 0d8fd799e6..516e9b3c65 100644 --- a/src/qml/jsruntime/qv4object.cpp +++ b/src/qml/jsruntime/qv4object.cpp @@ -549,8 +549,9 @@ void Object::advanceIterator(Managed *m, ObjectIterator *it, Value *name, uint * while (it->memberIndex < o->internalClass()->size) { Identifier n = o->internalClass()->nameMap.at(it->memberIndex); - if (!n.isValid()) { + if (!n.isValid() || !n.asHeapObject()->internalClass->vtable->isString) { // accessor properties have a dummy entry with n == 0 + // symbol entries are supposed to be skipped ++it->memberIndex; continue; } |