aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v4/qv4v8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/v4/qv4v8.cpp')
-rw-r--r--src/qml/qml/v4/qv4v8.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/qml/qml/v4/qv4v8.cpp b/src/qml/qml/v4/qv4v8.cpp
index 7b2345112b..f65ad0dab8 100644
--- a/src/qml/qml/v4/qv4v8.cpp
+++ b/src/qml/qml/v4/qv4v8.cpp
@@ -1354,6 +1354,11 @@ Handle<Object> Arguments::This() const
return m_thisObject;
}
+QV4::Value Arguments::ThisV4() const
+{
+ return m_thisObject->v4Value();
+}
+
Handle<Object> Arguments::Holder() const
{
// ### FIXME.
@@ -1641,7 +1646,7 @@ protected:
Arguments arguments(args, argc, thisObject, false, that->m_functionTemplate->m_data);
QV4::Value result = QV4::Value::undefinedValue();
if (that->m_functionTemplate->m_callback)
- result = that->m_functionTemplate->m_callback(arguments)->v4Value();
+ result = that->m_functionTemplate->m_callback(arguments);
return result;
}
@@ -1657,7 +1662,7 @@ protected:
QV4::Value result = QV4::Value::undefinedValue();
if (that->m_functionTemplate->m_callback)
- result = that->m_functionTemplate->m_callback(arguments)->v4Value();
+ result = that->m_functionTemplate->m_callback(arguments);
if (result.isObject())
return result;
return QV4::Value::fromObject(obj);