diff options
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4engine_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index e49b6a4ebf..24fb4ad923 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -56,6 +56,7 @@ class PageAllocation; QT_BEGIN_NAMESPACE class QV8Engine; +class QQmlError; namespace QV4 { namespace Debugging { @@ -328,6 +329,9 @@ struct Q_QML_EXPORT ExecutionEngine void Q_NORETURN throwException(const ValueRef value); ReturnedValue catchException(ExecutionContext *catchingContext, StackTrace *trace); + // Use only inside catch(...) -- will re-throw if no JS exception + static QQmlError convertJavaScriptException(QV4::ExecutionContext *context); + void Q_NORETURN throwInternal(); // ---- |