aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmljavascriptexpression.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-04-28 05:36:21 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-04-29 13:14:45 +0200
commit96d40fd09e4a59feb2cd8898267e6682fee2129d (patch)
treecde226e9f7699226536b3763f3628c9278a1c1cc /src/qml/qml/qqmljavascriptexpression.cpp
parent1a6dd638b830a5353fb2321b74a57d380539c92d (diff)
Move more methods on QV8Engine over to use v4 based syntax
Change-Id: I7d3501a2c4cd0d749c7c30b5c60fee12cde58aa4 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmljavascriptexpression.cpp')
-rw-r--r--src/qml/qml/qqmljavascriptexpression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmljavascriptexpression.cpp b/src/qml/qml/qqmljavascriptexpression.cpp
index a8b3a99e39..8bb5001226 100644
--- a/src/qml/qml/qqmljavascriptexpression.cpp
+++ b/src/qml/qml/qqmljavascriptexpression.cpp
@@ -172,7 +172,7 @@ QQmlJavaScriptExpression::evaluate(QQmlContextData *context,
v8::Local<v8::Value> result;
{
v8::TryCatch try_catch;
- v8::Handle<v8::Object> This = ep->v8engine()->global();
+ v8::Handle<v8::Object> This = v8::Value::fromV4Value(ep->v8engine()->global());
if (scopeObject() && requiresThisObject()) {
v8::Handle<v8::Value> value = ep->v8engine()->newQObject(scopeObject());
if (value->IsObject()) This = v8::Handle<v8::Object>::Cast(value);