Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.12.5, 5.13.1
-
Windows 10 x64
-
-
ee8589dd9a681a469511308345e4ef0b304aaaab (qt/qtdeclarative/5.15)
Description
The 'instanceof' operator in QML engine throws unexpectedly comparing to browser behavior and the MDN document:
// throw 'TypeError' in QML engine: null instanceof QtObject; // false undefined instanceof QtObject; // false {} instanceof QtObject; // false "" instanceof QtObject; // false 9 instanceof QtObject; // false true instanceof QtObject; // false