aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-07-31 09:43:43 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2018-08-01 13:17:51 +0000
commitf570d37d737b3e8443e45158c709a4aedf6c95f3 (patch)
treee7e70f13b3e3c7ac16f1bad394d323a7ad65ecbf /src
parente99038b24d8b9f4a8cc503d1e3f789a93a3e8330 (diff)
Fix a bunch of test failures for Function.prototype.toString()
Change-Id: I36f642e8db7f88698b25eed9e8a64ac2c5896b10 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qml/jsruntime/qv4functionobject.cpp2
-rw-r--r--src/qml/qml/qqmlbinding.cpp2
-rw-r--r--src/qml/qml/qqmlboundsignal.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp
index 2aca7c2849..5d2577d81c 100644
--- a/src/qml/jsruntime/qv4functionobject.cpp
+++ b/src/qml/jsruntime/qv4functionobject.cpp
@@ -344,7 +344,7 @@ ReturnedValue FunctionPrototype::method_toString(const FunctionObject *b, const
if (!functionName.isEmpty())
functionAsString.append(QLatin1Char(' ') + functionName);
- functionAsString.append(QStringLiteral("() { [code] }"));
+ functionAsString.append(QStringLiteral("() { [native code] }"));
return Encode(v4->newString(functionAsString));
}
diff --git a/src/qml/qml/qqmlbinding.cpp b/src/qml/qml/qqmlbinding.cpp
index cf87d58e68..e38f379eb0 100644
--- a/src/qml/qml/qqmlbinding.cpp
+++ b/src/qml/qml/qqmlbinding.cpp
@@ -552,7 +552,7 @@ void QQmlBinding::setEnabled(bool e, QQmlPropertyData::WriteFlags flags)
QString QQmlBinding::expression() const
{
- return QStringLiteral("function() { [code] }");
+ return QStringLiteral("function() { [native code] }");
}
void QQmlBinding::setTarget(const QQmlProperty &prop)
diff --git a/src/qml/qml/qqmlboundsignal.cpp b/src/qml/qml/qqmlboundsignal.cpp
index 3d67b45fe8..82c7921e0c 100644
--- a/src/qml/qml/qqmlboundsignal.cpp
+++ b/src/qml/qml/qqmlboundsignal.cpp
@@ -168,7 +168,7 @@ void QQmlBoundSignalExpression::expressionChanged()
QString QQmlBoundSignalExpression::expression() const
{
if (expressionFunctionValid())
- return QStringLiteral("function() { [code] }");
+ return QStringLiteral("function() { [native code] }");
return QString();
}