Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / qtbug_22679.qml
1 import QtQuick 2.0
2
3 QtObject {
4     function accessContextProperty() {
5         for (var i = 0; i < contextProp.stringProperty.length; ++i) ;
6     }
7
8     Component.onCompleted: {
9         for (var i = 0; i < 1000; ++i)
10             accessContextProperty();
11         // Shouldn't cause "Illegal invocation" error.
12         gc();
13     }
14 }