Fix unreliable behavior of array methods on qml list properties
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 9 Apr 2014 11:32:39 +0000 (13:32 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 9 Apr 2014 14:49:05 +0000 (16:49 +0200)
commit7b3eb5373a0d3611c5a83379c5eb59505cc5c074
treeb2f9f5e7beb86b065ef206f5d45025975ef49905
parent60730cbb5e5475b5db6a15641211aa6958a93197
Fix unreliable behavior of array methods on qml list properties

Array methods such as forEach rely on the hasProperty boolean of getIndexed to
be set appropriately. Some getIndexed implementation - such as the
QQmlListProperty one - didn't initialize it correctly and therefore the
behavior was undefined.

Task-number: QTBUG-38088
Change-Id: I34bc3136d8cc2bc280397d0c4d5051e7d72269e8
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/jsruntime/qv4argumentsobject.cpp
src/qml/qml/qqmlcontextwrapper.cpp
src/qml/qml/qqmllistwrapper.cpp
src/qml/qml/qqmlxmlhttprequest.cpp
src/quick/items/context2d/qquickcontext2d.cpp