Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.14.0
-
a8bc011d459a4d080815a2675f2a0413c8bf09d2 (qt/qtdeclarative/5.15)
Description
It seems that Array.includes doesn't check equality like Array.indexOf.
Array.indexOf behaves as expected but includes doesn't:
[(Qt.point(0, 0)].includes(Qt.point(0, 0)) returns false
Note the second attachment and the differences when using object properties or local javascript variables as array elements.
Everyline line should return true.
Attachments
For Gerrit Dashboard: QTBUG-81825 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
289110,5 | QV4: Handle value tyes in sameValue algorithm | 5.15 | qt/qtdeclarative | Status: MERGED | +2 | 0 |