diff options
Diffstat (limited to 'src/qml/jsruntime/qv4value.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4value.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4value.cpp b/src/qml/jsruntime/qv4value.cpp index 3d40f4b7f5..cd44d93f42 100644 --- a/src/qml/jsruntime/qv4value.cpp +++ b/src/qml/jsruntime/qv4value.cpp @@ -130,7 +130,7 @@ QString Value::toQStringNoThrow() const bool caughtException = false; ScopedValue prim(scope, RuntimeHelpers::toPrimitive(ValueRef::fromRawValue(this), STRING_HINT)); if (scope.hasException()) { - ex = ctx->catchException(); + ex = scope.engine->catchException(); caughtException = true; } else if (prim->isPrimitive()) { return prim->toQStringNoThrow(); @@ -139,7 +139,7 @@ QString Value::toQStringNoThrow() const if (caughtException) { ScopedValue prim(scope, RuntimeHelpers::toPrimitive(ex, STRING_HINT)); if (scope.hasException()) { - ex = ctx->catchException(); + ex = scope.engine->catchException(); } else if (prim->isPrimitive()) { return prim->toQStringNoThrow(); } |