diff options
Diffstat (limited to 'src/qml/jsruntime/qv4globalobject.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4globalobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4globalobject.cpp b/src/qml/jsruntime/qv4globalobject.cpp index f8886cb47f..d8f0535f63 100644 --- a/src/qml/jsruntime/qv4globalobject.cpp +++ b/src/qml/jsruntime/qv4globalobject.cpp @@ -384,7 +384,7 @@ ReturnedValue EvalFunction::evalCall(CallData *callData, bool directCall) const ctx->d()->v4Function = function; ScopedCallData cData(scope); - cData->thisObject = Encode::undefined(); // #### + cData->thisObject = scope.engine->currentStackFrame->thisObject(); return function->execute(ctx->d(), cData); } |
