Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.14.0
-
Fix Version/s: 5.15.0 Alpha
-
Component/s: QML: Declarative and Javascript Engine
-
Labels:
-
Commits: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.