aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4objectproto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4objectproto.cpp')
-rw-r--r--src/qml/jsruntime/qv4objectproto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4objectproto.cpp b/src/qml/jsruntime/qv4objectproto.cpp
index 64d5f5641c..289421e867 100644
--- a/src/qml/jsruntime/qv4objectproto.cpp
+++ b/src/qml/jsruntime/qv4objectproto.cpp
@@ -416,7 +416,7 @@ ReturnedValue ObjectPrototype::method_valueOf(CallContext *ctx)
ScopedValue v(scope, ctx->d()->callData->thisObject.toObject(scope.engine));
if (ctx->d()->engine->hasException)
return Encode::undefined();
- return v.asReturnedValue();
+ return v->asReturnedValue();
}
ReturnedValue ObjectPrototype::method_hasOwnProperty(CallContext *ctx)