diff options
Diffstat (limited to 'src/qml/jsruntime/qv4errorobject.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4errorobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4errorobject.cpp b/src/qml/jsruntime/qv4errorobject.cpp index 6174c9a7f5..96c5f67120 100644 --- a/src/qml/jsruntime/qv4errorobject.cpp +++ b/src/qml/jsruntime/qv4errorobject.cpp @@ -338,12 +338,12 @@ Value ErrorPrototype::method_toString(SimpleCallContext *ctx) if (name->isUndefined()) qname = QString::fromLatin1("Error"); else - qname = __qmljs_to_string(name, ctx).stringValue()->toQString(); + qname = name->toQString(); ScopedValue message(scope, o->get(ctx->engine->newString(QString::fromLatin1("message")))); QString qmessage; if (!message->isUndefined()) - qmessage = __qmljs_to_string(message, ctx).stringValue()->toQString(); + qmessage = message->toQString(); QString str; if (qname.isEmpty()) { |
