diff options
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index f6bd4d37c4..198138aab9 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -348,7 +348,7 @@ ReturnedValue FunctionPrototype::method_bind(CallContext *ctx) boundArgs.reset(); if (ctx->callData->argc > 1) { boundArgs.ensureIndex(scope.engine, ctx->callData->argc - 1); - boundArgs.d()->size = ctx->callData->argc - 1; + boundArgs.d()->d()->size = ctx->callData->argc - 1; memcpy(boundArgs.data(), ctx->callData->args + 1, (ctx->callData->argc - 1)*sizeof(Value)); } ScopedValue protectBoundArgs(scope, boundArgs.d()); |