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

lupdate doesn't allow trailing commas in JavaScript object literals

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 4.3.0
    • Tools: Linguist
    • 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

        Activity

          People

            kenthans Kent Hansen (Inactive)
            kenthans Kent Hansen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes