Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-54448

Some JavaScript functions do not work in release mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.6.1, 5.7.0
    • Qt Script
    • 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.

      Attachments

        Activity

          People

            laknoll Lars Knoll
            martin.huxol Martin Huxol
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: