aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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 f36e260642..5f6b0a056e 100644
--- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
+++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
@@ -2347,10 +2347,10 @@ static inline bool evaluate_error(QV8Engine *engine, const QV4::Value &o, const
scope.engine->catchException();
return true;
}
- QV4::ScopedCallData d(scope, 1);
- d->args[0] = o;
- d->thisObject = engine->global();
- function->call(d);
+ QV4::JSCall jsCall(scope, function, 1);
+ jsCall->args[0] = o;
+ jsCall->thisObject = engine->global();
+ jsCall.call();
if (scope.engine->hasException) {
scope.engine->catchException();
return true;
@@ -2377,10 +2377,10 @@ static inline bool evaluate_value(QV8Engine *engine, const QV4::Value &o,
return false;
QV4::ScopedValue value(scope);
- QV4::ScopedCallData d(scope, 1);
- d->args[0] = o;
- d->thisObject = engine->global();
- value = function->call(d);
+ QV4::JSCall jsCall(scope, function, 1);
+ jsCall->args[0] = o;
+ jsCall->thisObject = engine->global();
+ value = jsCall.call();
if (scope.engine->hasException) {
scope.engine->catchException();
return false;
@@ -2406,10 +2406,10 @@ static inline QV4::ReturnedValue evaluate(QV8Engine *engine, const QV4::Value &o
}
if (!function)
return QV4::Encode::undefined();
- QV4::ScopedCallData d(scope, 1);
- d->args[0] = o;
- d->thisObject = engine->global();
- QV4::ScopedValue result(scope, function->call(d));
+ QV4::JSCall jsCall(scope, function, 1);
+ jsCall->args[0] = o;
+ jsCall->thisObject = engine->global();
+ QV4::ScopedValue result(scope, jsCall.call());
if (scope.engine->hasException) {
scope.engine->catchException();
return QV4::Encode::undefined();