diff options
author | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-10-19 10:40:38 (GMT) |
---|---|---|
committer | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-10-19 11:40:35 (GMT) |
commit | 7a647e8c9efbbd46184bc4714159c82ae26be958 (patch) | |
tree | 1334c6e793b3cc84c669bbb78b1de26a1574ed18 /src/script/api/qscriptvalue.h | |
parent | f9e46cdb2d9a42d52f90fe50a53a76c03065b9ce (diff) | |
download | Qt-7a647e8c9efbbd46184bc4714159c82ae26be958.zip Qt-7a647e8c9efbbd46184bc4714159c82ae26be958.tar.gz Qt-7a647e8c9efbbd46184bc4714159c82ae26be958.tar.bz2 |
Regression fix. Fix the hasUncaughtException() flag in debugger's event.
The QScriptEngine::hasUncaughtException() flag should be set to true if
returning from a JS function was caused by an exception. According to
documentation, the flag had to be accessible from the
QScriptEngineAgent::functionExit event.
New autotest was added.
Reviewed-by: Kent Hansen
Diffstat (limited to 'src/script/api/qscriptvalue.h')
-rw-r--r-- | src/script/api/qscriptvalue.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/api/qscriptvalue.h b/src/script/api/qscriptvalue.h index 32f7a43..aba3327 100644 --- a/src/script/api/qscriptvalue.h +++ b/src/script/api/qscriptvalue.h @@ -70,6 +70,7 @@ typedef QList<QScriptValue> QScriptValueList; typedef double qsreal; class QScriptValuePrivate; +class QScriptEnginePrivate; struct QScriptValuePrivatePointerDeleter; class Q_SCRIPT_EXPORT QScriptValue { @@ -226,6 +227,8 @@ private: QExplicitlySharedDataPointer<QScriptValuePrivate> d_ptr; Q_DECLARE_PRIVATE(QScriptValue) + + friend class QScriptEnginePrivate; }; Q_DECLARE_OPERATORS_FOR_FLAGS(QScriptValue::ResolveFlags) |