aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r--src/qml/jsruntime/qv4context.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp
index 563b6b2709..1e42a186a0 100644
--- a/src/qml/jsruntime/qv4context.cpp
+++ b/src/qml/jsruntime/qv4context.cpp
@@ -596,7 +596,9 @@ Value ExecutionContext::getPropertyAndBase(String *name, Object **base)
void ExecutionContext::throwError(const Value &value)
{
- __qmljs_throw(this, value);
+ ValueScope scope(this);
+ ScopedValue v(scope, value);
+ __qmljs_throw(this, v);
}
void ExecutionContext::throwError(const QString &message)