Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23402

QML/JS Auto-formatting removes JavaScript spread operator (ellipsis).

    XMLWordPrintable

Details

    • Windows
    • c0f9f290970f3a562411d808594e557014c10f4e (qt-creator/qt-creator/master)

    Description

      When a qml- or js-file containing JavaScript code using the spread operator (ellipsis) is auto-formatted, the spread operator is simply removed from the code.

       

      Example:
      Before formatting:

      console.log(Math.max(...[1, 2, 3, 4]))

      After formatting:

      console.log(Math.max([1, 2, 3, 4]))

      Attachments

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

        Activity

          People

            fawzi Fawzi Mohamed
            coderr Julian
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes