Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.6.1, 5.7.0
-
None
-
Windows8.1
official qt-opensource-windows-x86-msvc2015_64-5.6.1-1 installer
Description
running the following JavaScript code in the script example application (Qt\Qt5.6.1\Examples\Qt-5.6\script\qscript) produces different results for debug and release mode:
var str = "teststring";
str.lastIndexOf("i");
in debug mode it works correctly and returns '7', while in release mode '-1' is being returned in all cases.