diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-05-11 13:16:10 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-05-19 12:18:21 +0200 |
commit | 7a8e5cde457934f3928b8a54476eefd3b287ce47 (patch) | |
tree | df6d8c2a450a1e2e9dacf0d8347517b0be128776 /tests/auto/qml/qqmllanguage/data/arrayToContainer.qml | |
parent | f514f8162000ef82fdf2f7feac2a4b6365f70804 (diff) |
QV4Engine: Fix type conversion
When converting JS arrays to sequence<T> type, check first for the
existence of a QJSValue -> T converter function. This restores the
behavior from Qt <= 5.14. Amends ecdb4ed275a0869dc668d73d774735575d43a0a3
Fixes: QTBUG-84104
Change-Id: I14c86ab37e34a3c8cff072574d4b90fe9e558535
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit d911034f461859a72b45aeca0f34c34808e3f09b)
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/arrayToContainer.qml')
-rw-r--r-- | tests/auto/qml/qqmllanguage/data/arrayToContainer.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/arrayToContainer.qml b/tests/auto/qml/qqmllanguage/data/arrayToContainer.qml index d8e278a7a1..bc1b0d51e0 100644 --- a/tests/auto/qml/qqmllanguage/data/arrayToContainer.qml +++ b/tests/auto/qml/qqmllanguage/data/arrayToContainer.qml @@ -6,4 +6,5 @@ TestItem { property var myset positions: vector barrays: myset + convertibles: ["hello", "world"] } |