Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.9.0 RC
-
None
-
1919410cf (dev), c36416c97 (dev), d1aa2e846 (6.9)
Description
I had a piece of (bad) code in an application that was accidently missing the .length in the if check
const theList = PC.Experiment.get() // returns QStringList if (theList) { for (let entry of theList) { console.log(entry) } } else { // do whatever }
which causes a crash of qmlsc. Adding the missing .length makes it happy again - a traditional style for(let i=0;...) loop is also working fine.
Attachments
For Gerrit Dashboard: QTBUG-135288 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
636161,2 | QmlCompiler: Test iteration on adjusted container | 6.8 | qt/qtdeclarative | Status: NEW | +2 | 0 |
635396,4 | QmlCompiler: Do not re-resolve iterator value types | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
635397,3 | QmlCompiler: Return after each reject() in code generator | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 |
635974,2 | QmlCompiler: Do not re-resolve iterator value types | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |