Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8.0 RC
-
None
-
3d3ff946e (dev), d05efeb35 (6.8), f2431370a (dev), bdb1d21a0 (6.8)
Description
https://bugs.kde.org/show_bug.cgi?id=488558 shows a case where a QJsonArray was implicitly converted to QStringList via JavaScript Array in Qt 6.7. This doesn't work anymore because since https://codereview.qt-project.org/c/qt/qtdeclarative/+/561082 a QJsonArray is represented as QV4::Sequence, not as JS Array.
So the underlying question is whether we should implicitly coerce array-likes to QStringList (via element-wise ToString). If so, this should work with all array-likes. If not, it should also not work for JavaScript arrays.
Attachments
Issue Links
- is duplicated by
-
QTBUG-127600 Assigning list<string> to list<var> silently fails
- Closed