aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4functionobject.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp
index 8e84eaebe7..02ea763b30 100644
--- a/src/qml/jsruntime/qv4functionobject.cpp
+++ b/src/qml/jsruntime/qv4functionobject.cpp
@@ -539,6 +539,7 @@ void SimpleScriptFunction::construct(const Managed *that, Scope &scope, CallData
CallContext::Data ctx = CallContext::Data::createOnStack(v4);
ctx.function = f->d();
QV4::Function *ff = ctx.function->function;
+ ctx.v4Function = ff;
ctx.strictMode = ff->isStrict();
ctx.callData = callData;
ctx.compilationUnit = ff->compilationUnit;
@@ -580,6 +581,7 @@ void SimpleScriptFunction::call(const Managed *that, Scope &scope, CallData *cal
CallContext::Data ctx = CallContext::Data::createOnStack(v4);
ctx.function = f->d();
QV4::Function *ff = ctx.function->function;
+ ctx.v4Function = ff;
ctx.strictMode = ff->isStrict();
ctx.callData = callData;
ctx.compilationUnit = ff->compilationUnit;