diff options
author | Lars Knoll <[email protected]> | 2018-07-31 09:43:43 +0200 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2018-08-01 13:17:51 +0000 |
commit | f570d37d737b3e8443e45158c709a4aedf6c95f3 (patch) | |
tree | e7e70f13b3e3c7ac16f1bad394d323a7ad65ecbf /src/qml/jsruntime/qv4functionobject.cpp | |
parent | e99038b24d8b9f4a8cc503d1e3f789a93a3e8330 (diff) |
Fix a bunch of test failures for Function.prototype.toString()
Change-Id: I36f642e8db7f88698b25eed9e8a64ac2c5896b10
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 2 |
1 files changed, 1 insertions, 1 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)); } |