aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/ecmascripttests
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-01-09 13:07:49 +0100
committerUlf Hermann <ulf.hermann@qt.io>2022-01-20 19:33:01 +0100
commit3027d8ed74705cd0dd43009acdb6f354d430d5ba (patch)
treec65df935ca55693482383d1d75cf79c88d5dfe11 /tests/auto/qml/ecmascripttests
parented6b31389ac554287b4e00a6ad743e6ebf72160f (diff)
V4: Fix naming of array data classes
Provide convenience wrappers for access to const/mutable data, properly discern between the "buffer" object and the actual data, especially regarding shared/detached state. Change-Id: I48f1f1eb8c204c29277746e5dee63892cbf3ac89 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'tests/auto/qml/ecmascripttests')
-rw-r--r--tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp b/tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp
index 24633d9c6d..fef6e97960 100644
--- a/tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp
+++ b/tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp
@@ -87,10 +87,10 @@ static ReturnedValue method_detachArrayBuffer(const FunctionObject *f, const Val
if (!a)
return scope.engine->throwTypeError();
- if (a->isShared())
+ if (a->hasSharedArrayData())
return scope.engine->throwTypeError();
- a->d()->detachArrayBuffer();
+ a->d()->detachArrayData();
return Encode::null();
}