Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.3.0
-
None
-
a6c060027bbd581b2962ee29336bd1329d4b0d3b
Description
As per ECMA-262 5th edition, section 11.1.5, object literals are permitted to have a trailing comma after the last property definition.
lupdate treats the trailing comma as a syntax error and stops parsing the JavaScript file, causing subsequent translations not to be recorded in the .ts file.
Attachments
For Gerrit Dashboard: QTBUG-22970 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
10232,2 | lupdate: Allow trailing commas in QtScript/JS object literals | master | qt/qttools | Status: MERGED | +2 | 0 |