Check dynamic slot function for nullness before evaluation
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeecmascript / data / v8functionException.qml
1 import QtQuick 2.0
2
3 // This test uses a multi-line string which has \r-terminated
4 // string fragments.  The expression rewriter deliberately doesn't
5 // handle \r-terminated string fragments (see QTBUG-24064) and thus
6 // this test ensures that we don't crash when the client attempts
7 // to invoke a non-compiled dynamic slot.
8
9 Item {
10     id: root
11
12     function dynamicSlot() {
13         var someString = "Hello,\r        this is a\r        multiline string";
14     }
15 }