summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml
blob: 9d99b41f0cb13cfb424c5f009f0189c3bb81b7d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import Qt.test 1.0

MyQmlObject {
    Script { source: "scriptErrors.js" }
    Script { function getValue() { a = 10; return 0; } }

    property int t: a.value
    property int w: getValue();
    property int x: undefinedObject
    property int y: (a.value, undefinedObject)

    onBasicSignal: { console.log(a.value); }

}