diff options
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index a270689b43..35e4202790 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -471,14 +471,6 @@ ReturnedValue ScriptFunction::call(Managed *that, CallData *callData) CallContext *ctx = context->newCallContext(f, callData); - if (!f->strictMode && !callData->thisObject.isObject()) { - if (callData->thisObject.isNullOrUndefined()) { - ctx->callData->thisObject = v4->globalObject->asReturnedValue(); - } else { - ctx->callData->thisObject = callData->thisObject.toObject(context)->asReturnedValue(); - } - } - if (f->function->compiledFunction->hasQmlDependencies()) QmlContextWrapper::registerQmlDependencies(ctx->engine, f->function->compiledFunction); @@ -568,14 +560,6 @@ ReturnedValue SimpleScriptFunction::call(Managed *that, CallData *callData) ExecutionContext *context = v4->current; ExecutionContext *ctx = context->newCallContext(stackSpace, scope.alloc(f->varCount), f.getPointer(), callData); - if (!f->strictMode && !callData->thisObject.isObject()) { - if (callData->thisObject.isNullOrUndefined()) { - ctx->callData->thisObject = v4->globalObject->asReturnedValue(); - } else { - ctx->callData->thisObject = callData->thisObject.toObject(context)->asReturnedValue(); - } - } - if (f->function->compiledFunction->hasQmlDependencies()) QmlContextWrapper::registerQmlDependencies(v4, f->function->compiledFunction); |