summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/qscriptengine.cpp')
-rw-r--r--src/script/api/qscriptengine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp
index be6cdba..16c0371 100644
--- a/src/script/api/qscriptengine.cpp
+++ b/src/script/api/qscriptengine.cpp
@@ -1960,6 +1960,8 @@ int QScriptEngine::uncaughtExceptionLineNumber() const
*/
QStringList QScriptEngine::uncaughtExceptionBacktrace() const
{
+ if (!hasUncaughtException())
+ return QStringList();
qWarning("QScriptEngine::uncaughtExceptionBacktrace() not implemented");
// ### implement me
// how do we get a bt with JSC?