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

JavaScript arrays are broken in 5.6.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.6.0
    • None
    • Arch Linux x86_64, two different machines (Intel and AMD).

    Description

      «var b = [1, 2, 3, 4, 5, 6, 7, 8, 9]; b.unshift(0); console.log(b);» segfaults.

      «var b = [1, 2, 3, 4, 5, 6, 7, 8, 9]; b.unshift(0); console.log(JSON.stringify(b));» prints «[0,5,6,7,8,9,null,null,null,null]»

      «var b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; b.unshift(0); console.log(JSON.stringify(b));» prints «[0,null,null,null,null,1,2,3,4,5,6]».

      This was working in 5.5.x afaik.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shausman Simon Hausmann
            chalker Сковорода Никита
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes