diff options
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4script.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp index 23dfd3fc89..d5f08041f6 100644 --- a/src/qml/jsruntime/qv4script.cpp +++ b/src/qml/jsruntime/qv4script.cpp @@ -153,12 +153,14 @@ ReturnedValue Script::run() QV4::ScopedCallData cData(scope); cData->thisObject = engine->globalObject; - return vmFunction->execute(scope->d(), cData); + cData->context = *scope; + return vmFunction->execute(cData); } else { Scoped<QmlContext> qml(valueScope, qmlContext.value()); ScopedCallData callData(valueScope); callData->thisObject = Primitive::undefinedValue(); - return vmFunction->call(qml->d(), callData); + callData->context = *qml; + return vmFunction->call(callData); } } |
