Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.11.0
-
Qt Creator 4.11 64bit, Windows 10
-
-
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
For Gerrit Dashboard: QTCREATORBUG-23402 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
335911,2 | qmljs: correctly reformat js spread operator (...) | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |