Commit a6c06002 authored by Kent Hansen's avatar Kent Hansen Committed by Qt by Nokia
Browse files

lupdate: Allow trailing commas in QtScript/JS object literals


As per ECMA-262 5th edition, section 11.1.5, trailing commas should
be allowed in object literals. E.g.

{ foo: 10, }

shouldn't cause a syntax error; the comma should simply be ignored.

Task-number: QTBUG-22970
Change-Id: I3e730ad3001760475e5e40bb4a28a05b0baf5c7e
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarRoberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@nokia.com>
parent 9f751bfc
Showing with 672 additions and 512 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment