summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlecmascript/data/exceptionProducesWarning.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qmlecmascript/data/exceptionProducesWarning.qml')
-rw-r--r--tests/auto/declarative/qmlecmascript/data/exceptionProducesWarning.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative/qmlecmascript/data/exceptionProducesWarning.qml b/tests/auto/declarative/qmlecmascript/data/exceptionProducesWarning.qml
index 44722a9..acc3163 100644
--- a/tests/auto/declarative/qmlecmascript/data/exceptionProducesWarning.qml
+++ b/tests/auto/declarative/qmlecmascript/data/exceptionProducesWarning.qml
@@ -3,6 +3,6 @@ import Qt.test 1.0
MyQmlObject {
Component.onCompleted:
- { throw(123,"JS exception") }
+ { throw(new Error("JS exception")) }
}