diff options
-rw-r--r-- | src/v4/qv4functionobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/v4/qv4functionobject.cpp b/src/v4/qv4functionobject.cpp index 91bff417..17b98246 100644 --- a/src/v4/qv4functionobject.cpp +++ b/src/v4/qv4functionobject.cpp @@ -301,7 +301,7 @@ Value FunctionPrototype::method_bind(CallContext *ctx) boundArgs += ctx->argument(i); - BoundFunction *f = ctx->engine->newBoundFunction(ctx, target, boundThis, boundArgs); + BoundFunction *f = ctx->engine->newBoundFunction(ctx->engine->rootContext, target, boundThis, boundArgs); return Value::fromObject(f); } |