aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/qtbug_22679.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/qtbug_22679.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/qtbug_22679.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/qtbug_22679.qml b/tests/auto/qml/qqmlecmascript/data/qtbug_22679.qml
new file mode 100644
index 0000000000..b38a84b4c0
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/qtbug_22679.qml
@@ -0,0 +1,14 @@
+import QtQuick 2.0
+
+QtObject {
+ function accessContextProperty() {
+ for (var i = 0; i < contextProp.stringProperty.length; ++i) ;
+ }
+
+ Component.onCompleted: {
+ for (var i = 0; i < 1000; ++i)
+ accessContextProperty();
+ // Shouldn't cause "Illegal invocation" error.
+ gc();
+ }
+}