diff options
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index 7c2ab2cc80..ea82923cc5 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -150,10 +150,10 @@ void FunctionObject::init(String *n, bool createProto) if (createProto) { Scoped<Object> proto(s, scope()->engine->newObject(scope()->engine->protoClass)); proto->ensureMemberIndex(s.engine, Heap::FunctionObject::Index_ProtoConstructor); - proto->memberData()->data()[Heap::FunctionObject::Index_ProtoConstructor] = this->asReturnedValue(); - memberData()->data()[Heap::FunctionObject::Index_Prototype] = proto.asReturnedValue(); + proto->memberData()->data[Heap::FunctionObject::Index_ProtoConstructor] = this->asReturnedValue(); + memberData()->data[Heap::FunctionObject::Index_Prototype] = proto.asReturnedValue(); } else { - memberData()->data()[Heap::FunctionObject::Index_Prototype] = Encode::undefined(); + memberData()->data[Heap::FunctionObject::Index_Prototype] = Encode::undefined(); } ScopedValue v(s, n); |