summaryrefslogtreecommitdiff
path: root/src/qml/jsruntime/qv4stringobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4stringobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4stringobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4stringobject.cpp b/src/qml/jsruntime/qv4stringobject.cpp
index 5b0891ebe1..f26c77e5bf 100644
--- a/src/qml/jsruntime/qv4stringobject.cpp
+++ b/src/qml/jsruntime/qv4stringobject.cpp
@@ -305,7 +305,7 @@ ReturnedValue StringPrototype::method_concat(CallContext *context)
ScopedValue v(scope);
for (int i = 0; i < context->callData->argc; ++i) {
- v = __qmljs_to_string(context, ValueRef(&context->callData->args[i]));
+ v = RuntimeHelpers::toString(context, ValueRef(&context->callData->args[i]));
if (scope.hasException())
return Encode::undefined();
Q_ASSERT(v->isString());
@@ -349,7 +349,7 @@ ReturnedValue StringPrototype::method_lastIndexOf(CallContext *context)
searchString = context->callData->args[0].toQString();
ScopedValue posArg(scope, context->argument(1));
- double position = __qmljs_to_number(posArg);
+ double position = RuntimeHelpers::toNumber(posArg);
if (std::isnan(position))
position = +qInf();
else