aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v8/qv8contextwrapper.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-05-07 09:54:05 +0200
committerLars Knoll <lars.knoll@digia.com>2013-05-07 12:25:38 +0200
commit1abed74e211585ef9d8aab46ab924a212860c5fe (patch)
tree7c93d691dab64ff6cedf8f8b073878f5e78dcbdd /src/qml/qml/v8/qv8contextwrapper.cpp
parente855f1387badcbf88954b8707c1dc418cc66c215 (diff)
Replace v8::Undefined() with QV4::Value::undefinedValue()
Change-Id: I4c7bb5bcc1bc15a982bb83d2597e6ae4bc5710cd Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/v8/qv8contextwrapper.cpp')
-rw-r--r--src/qml/qml/v8/qv8contextwrapper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/qml/v8/qv8contextwrapper.cpp b/src/qml/qml/v8/qv8contextwrapper.cpp
index 5e84082d8c..e36665027f 100644
--- a/src/qml/qml/v8/qv8contextwrapper.cpp
+++ b/src/qml/qml/v8/qv8contextwrapper.cpp
@@ -255,7 +255,7 @@ v8::Handle<v8::Value> QV8ContextWrapper::Getter(v8::Handle<v8::String> property,
QQmlContextData *expressionContext = context;
if (!context)
- return v8::Undefined();
+ return QV4::Value::undefinedValue();
if (info.GetIsolate()->GetEngine()->qmlContextObject() != info.This()->v4Value().asObject())
return v8::Handle<v8::Value>();
@@ -284,7 +284,7 @@ v8::Handle<v8::Value> QV8ContextWrapper::Getter(v8::Handle<v8::String> property,
if (index < context->importedScripts.count())
return context->importedScripts.at(index);
else
- return v8::Undefined();
+ return QV4::Value::undefinedValue();
} else if (r.type) {
return engine->typeWrapper()->newObject(scopeObject, r.type);
} else if (r.importNamespace) {
@@ -385,7 +385,7 @@ v8::Handle<v8::Value> QV8ContextWrapper::Setter(v8::Handle<v8::String> property,
QQmlContextData *expressionContext = context;
if (!context)
- return v8::Undefined();
+ return QV4::Value::undefinedValue();
if (info.GetIsolate()->GetEngine()->qmlContextObject() != info.This()->v4Value().asObject())
return v8::Handle<v8::Value>();
@@ -427,7 +427,7 @@ v8::Handle<v8::Value> QV8ContextWrapper::Setter(v8::Handle<v8::String> property,
QString error = QLatin1String("Invalid write to global property \"") + property->v4Value().toQString() +
QLatin1Char('"');
v8::ThrowException(v8::Exception::Error(engine->toString(error)));
- return v8::Undefined();
+ return QV4::Value::undefinedValue();
}
}