aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4globalobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4globalobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4globalobject.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4globalobject.cpp b/src/qml/jsruntime/qv4globalobject.cpp
index cbf6ddc1c6..a465fdc729 100644
--- a/src/qml/jsruntime/qv4globalobject.cpp
+++ b/src/qml/jsruntime/qv4globalobject.cpp
@@ -412,13 +412,11 @@ ReturnedValue EvalFunction::evalCall(CallData *callData, bool directCall)
ScopedValue result(scope);
try {
result = function->code(ctx, function->codeData);
- } catch (Exception &ex) {
+ } catch (...) {
ctx->strictMode = cstrict;
ctx->currentEvalCode = evalCode.next;
ctx->compilationUnit = oldCompilationUnit;
- if (strictMode)
- ex.partiallyUnwindContext(parentContext);
- throw;
+ ctx->rethrowException();
}
ctx->strictMode = cstrict;