aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-10-20 16:00:56 +0200
committerLars Knoll <lars.knoll@qt.io>2017-11-07 09:00:37 +0000
commita59d9a7eacea3614462eb910e03351cbb9d34b75 (patch)
tree6ccb0dedfc7fd12279183aa5e5f15413c0b5e7df /tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
parent98271afabd409defee3b1f09158e64fabbc35070 (diff)
Get rid of JSCallData::call()
Change-Id: I6b99e9a7102b3dcb6a7699f54b6456eba6248699 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp')
-rw-r--r--tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
index 14bf328f5a..206d08e4e9 100644
--- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
+++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
@@ -2349,10 +2349,10 @@ static inline bool evaluate_error(QV8Engine *engine, const QV4::Value &o, const
scope.engine->catchException();
return true;
}
- QV4::JSCallData jsCall(scope, function, 1);
- jsCall->args[0] = o;
- jsCall->thisObject = engine->global();
- jsCall.call();
+ QV4::JSCallData jsCallData(scope, function, 1);
+ jsCallData->args[0] = o;
+ jsCallData->thisObject = engine->global();
+ function->call(jsCallData);
if (scope.engine->hasException) {
scope.engine->catchException();
return true;
@@ -2379,10 +2379,10 @@ static inline bool evaluate_value(QV8Engine *engine, const QV4::Value &o,
return false;
QV4::ScopedValue value(scope);
- QV4::JSCallData jsCall(scope, function, 1);
- jsCall->args[0] = o;
- jsCall->thisObject = engine->global();
- value = jsCall.call();
+ QV4::JSCallData jsCallData(scope, function, 1);
+ jsCallData->args[0] = o;
+ jsCallData->thisObject = engine->global();
+ value = function->call(jsCallData);
if (scope.engine->hasException) {
scope.engine->catchException();
return false;
@@ -2408,10 +2408,10 @@ static inline QV4::ReturnedValue evaluate(QV8Engine *engine, const QV4::Value &o
}
if (!function)
return QV4::Encode::undefined();
- QV4::JSCallData jsCall(scope, function, 1);
- jsCall->args[0] = o;
- jsCall->thisObject = engine->global();
- QV4::ScopedValue result(scope, jsCall.call());
+ QV4::JSCallData jsCallData(scope, function, 1);
+ jsCallData->args[0] = o;
+ jsCallData->thisObject = engine->global();
+ QV4::ScopedValue result(scope, function->call(jsCallData));
if (scope.engine->hasException) {
scope.engine->catchException();
return QV4::Encode::undefined();