diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-04-28 05:09:39 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-04-29 13:13:05 +0200 |
commit | 1a6dd638b830a5353fb2321b74a57d380539c92d (patch) | |
tree | 9123fa75f233b10ba49fc20fac358ffea1258c13 /src/qml/qml/v8/qv8contextwrapper.cpp | |
parent | d09c05954867b57b3ae00499a1552f022d33e74c (diff) |
Get rid of QV8Engine::toString()
It's easier to use toQString() on a QV4::Value
Change-Id: I9bf22cb72607b32948e77c632d2f9b8fe120ea41
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/v8/qv8contextwrapper.cpp')
-rw-r--r-- | src/qml/qml/v8/qv8contextwrapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/v8/qv8contextwrapper.cpp b/src/qml/qml/v8/qv8contextwrapper.cpp index 9c37d87a48..b056cc111e 100644 --- a/src/qml/qml/v8/qv8contextwrapper.cpp +++ b/src/qml/qml/v8/qv8contextwrapper.cpp @@ -362,7 +362,7 @@ v8::Handle<v8::Value> QV8ContextWrapper::NullSetter(v8::Local<v8::String> proper if (!resource->readOnly) { return v8::Handle<v8::Value>(); } else { - QString error = QLatin1String("Invalid write to global property \"") + engine->toString(property) + + QString error = QLatin1String("Invalid write to global property \"") + property->v4Value().toQString() + QLatin1Char('"'); v8::ThrowException(v8::Exception::Error(engine->toString(error))); return v8::Handle<v8::Value>(); @@ -420,7 +420,7 @@ v8::Handle<v8::Value> QV8ContextWrapper::Setter(v8::Local<v8::String> property, if (!resource->readOnly) { return v8::Handle<v8::Value>(); } else { - QString error = QLatin1String("Invalid write to global property \"") + engine->toString(property) + + QString error = QLatin1String("Invalid write to global property \"") + property->v4Value().toQString() + QLatin1Char('"'); v8::ThrowException(v8::Exception::Error(engine->toString(error))); return v8::Undefined(); |