aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsapi
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-09-02 16:41:58 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-09-03 09:06:33 +0200
commite7899df08030030930a3e30f0c8947275328e4f0 (patch)
tree0528acb885703493c42ec9a1ddfec167834e8a42 /src/qml/jsapi
parentea9d2e5293f19d66816c7b4f4a3308e5338d8380 (diff)
QJSEngine::evaluete: fix documentation
Change-Id: Ie0e6d975079e4cbedad2dd4f17d3efe8aee553bc Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io>
Diffstat (limited to 'src/qml/jsapi')
-rw-r--r--src/qml/jsapi/qjsengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsapi/qjsengine.cpp b/src/qml/jsapi/qjsengine.cpp
index 6f10495610..ca18bb61e6 100644
--- a/src/qml/jsapi/qjsengine.cpp
+++ b/src/qml/jsapi/qjsengine.cpp
@@ -486,7 +486,7 @@ static QUrl urlForFileName(const QString &fileName)
provided with this function.
\a stackTrace is used to report whether an uncaught exception was
- thrown. If you pass a non-null pointer to a boolean to it, it will set
+ thrown. If you pass a non-null pointer to a QStringList to it, it will set
it to list of "stackframe messages" if the script threw an unhandled
exception, or an empty list otherwise. A stackframe message has the format
function name:line number:column:file name
@@ -495,7 +495,7 @@ static QUrl urlForFileName(const QString &fileName)
\note If an exception was thrown and the exception value is not an
Error instance (i.e., QJSValue::isError() returns \c false), the
- exception value will still be returned. Use \a stackTrace to
+ exception value will still be returned. Use \a stackTrace->isEmpty() to
distinguish whether the value was a normal or an exceptional return
value.
*/