aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4jsonobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4jsonobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4jsonobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4jsonobject.cpp b/src/qml/jsruntime/qv4jsonobject.cpp
index 32b7ba73cc..3048d00ddb 100644
--- a/src/qml/jsruntime/qv4jsonobject.cpp
+++ b/src/qml/jsruntime/qv4jsonobject.cpp
@@ -706,7 +706,7 @@ QString Stringify::Str(const QString &key, Value value)
ScopedCallData callData(ctx->engine, 1);
callData->thisObject = value;
callData->args[0] = Value::fromString(ctx, key);
- value = toJSON->call(callData);
+ value = Value::fromReturnedValue(toJSON->call(callData));
}
}
@@ -718,7 +718,7 @@ QString Stringify::Str(const QString &key, Value value)
callData->args[0] = Value::fromString(ctx, key);
callData->args[1] = value;
callData->thisObject = holderValue;
- value = replacerFunction->call(callData);
+ value = Value::fromReturnedValue(replacerFunction->call(callData));
}
if (Object *o = value.asObject()) {