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.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp
index e5db62a749..d3d8c1c291 100644
--- a/src/qml/jsruntime/qv4script.cpp
+++ b/src/qml/jsruntime/qv4script.cpp
@@ -151,12 +151,14 @@ ReturnedValue Script::run()
ContextStateSaver stateSaver(valueScope, scope);
scope->d()->v4Function = vmFunction;
- return Q_V4_PROFILE(engine, scope->d(), vmFunction, 0);
+ QV4::ScopedCallData cData(scope);
+ cData->thisObject = engine->globalObject;
+ return vmFunction->execute(scope->d(), cData);
} else {
Scoped<QmlContext> qml(valueScope, qmlContext.value());
ScopedCallData callData(valueScope);
callData->thisObject = Primitive::undefinedValue();
- return ExecutionContext::call(qml->d(), callData, vmFunction);
+ return vmFunction->call(qml->d(), callData);
}
}