diff options
Diffstat (limited to 'src/qml/jsruntime/qv4jsonobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4jsonobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4jsonobject.cpp b/src/qml/jsruntime/qv4jsonobject.cpp index 16018722cb..5e580b8b4d 100644 --- a/src/qml/jsruntime/qv4jsonobject.cpp +++ b/src/qml/jsruntime/qv4jsonobject.cpp @@ -698,7 +698,7 @@ QString Stringify::Str(const QString &key, const Value &v) ScopedFunctionObject toJSON(scope, o->get(s)); if (!!toJSON) { JSCallData jsCallData(scope, 1); - jsCallData->thisObject = value; + *jsCallData->thisObject = value; jsCallData->args[0] = v4->newString(key); value = toJSON->call(jsCallData); } @@ -710,7 +710,7 @@ QString Stringify::Str(const QString &key, const Value &v) JSCallData jsCallData(scope, 2); jsCallData->args[0] = v4->newString(key); jsCallData->args[1] = value; - jsCallData->thisObject = holder; + *jsCallData->thisObject = holder; value = replacerFunction->call(jsCallData); } |