aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
-rw-r--r--src/qml/jsruntime/qv4script.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp
index ef85ce43de..e5db62a749 100644
--- a/src/qml/jsruntime/qv4script.cpp
+++ b/src/qml/jsruntime/qv4script.cpp
@@ -156,10 +156,7 @@ ReturnedValue Script::run()
Scoped<QmlContext> qml(valueScope, qmlContext.value());
ScopedCallData callData(valueScope);
callData->thisObject = Primitive::undefinedValue();
- if (vmFunction->canUseSimpleFunction())
- return qml->simpleCall(valueScope.engine, callData, vmFunction);
- else
- return qml->call(valueScope.engine, callData, vmFunction);
+ return ExecutionContext::call(qml->d(), callData, vmFunction);
}
}