aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4runtime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4runtime.cpp')
-rw-r--r--src/qml/jsruntime/qv4runtime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp
index db82efa087..e4f97b2000 100644
--- a/src/qml/jsruntime/qv4runtime.cpp
+++ b/src/qml/jsruntime/qv4runtime.cpp
@@ -1126,13 +1126,13 @@ ReturnedValue Runtime::unwindException(ExecutionEngine *engine)
{
if (!engine->hasException)
return Primitive::emptyValue().asReturnedValue();
- return engine->catchException(engine->currentContext(), 0);
+ return engine->catchException(0);
}
void Runtime::pushCatchScope(NoThrowEngine *engine, String *exceptionVarName)
{
Scope scope(engine);
- ScopedValue v(scope, engine->catchException(engine->currentContext(), 0));
+ ScopedValue v(scope, engine->catchException(0));
engine->currentContext()->newCatchContext(exceptionVarName, v);
}