Details
Description
When using the 'lastIndexOf' method of a string in JavaScript, it always returns -1. It only affects release builds. This bug appeard with 5.6.1, 5.6.0 was still ok.
Steps to reproduce:
In 'helloscript' sample, replace the content of the file 'helloscript.js' with:
helloscript.js
//! [0] button.text = "'abcabc'.lastIndexOf('c'): " + 'abcabc'.lastIndexOf('c'); button.styleSheet = 'font-style: italic'; button.show(); //! [0]
The debug build correctly outputs:
'abcabc'.lastIndexOf('c'): 5
The release build outputs:
'abcabc'.lastIndexOf('c'): -1
Attachments
Issue Links
- depends on
-
QTBUG-54443 Update to Visual Studio 2015 Update 3
- Closed
- is duplicated by
-
QBS-1099 QBS JavaScript lastIndexOf always returns -1
- Closed