diff options
| author | Lars Knoll <lars.knoll@theqtcompany.com> | 2014-11-07 05:24:24 +0100 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-11-11 05:31:27 +0100 |
| commit | e552ca0602186826b9dbf2435dd95303cf1bf39b (patch) | |
| tree | 17925de60d6e934d2a1a4fc586caa09f3eeae366 /src/qml/jsruntime/qv4functionobject.cpp | |
| parent | a4b8bea95f95d4258dc04e7924eab4a11e072acb (diff) | |
Use Heap object for CallData::function member
Change-Id: I5cae1b16c68751da9481a1cdae2601efa2a500a2
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index ecfd64bbd9..1f37ea13fd 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -457,7 +457,7 @@ ReturnedValue SimpleScriptFunction::construct(Managed *that, CallData *callData) CallContext::Data ctx(v4); ctx.strictMode = f->strictMode(); ctx.callData = callData; - ctx.function = f.getPointer(); + ctx.function = f.getPointer()->d(); ctx.compilationUnit = f->function()->compilationUnit; ctx.lookups = ctx.compilationUnit->runtimeLookups; ctx.outer = f->scope(); @@ -494,7 +494,7 @@ ReturnedValue SimpleScriptFunction::call(Managed *that, CallData *callData) CallContext::Data ctx(v4); ctx.strictMode = f->strictMode(); ctx.callData = callData; - ctx.function = f; + ctx.function = f->d(); ctx.compilationUnit = f->function()->compilationUnit; ctx.lookups = ctx.compilationUnit->runtimeLookups; ctx.outer = f->scope(); |
