Accept missing semicolon after do-while statement.
authorErik Verbruggen <erik.verbruggen@digia.com>
Thu, 22 Nov 2012 08:39:22 +0000 (09:39 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 26 Nov 2012 19:19:35 +0000 (20:19 +0100)
commit224316b515ed42411c43e1be8997c2d8faedc45e
tree97468edf428ae0d3f7253ed03a1a9d4f501b511a
parente9e49c6157f7cfb84faeaab0438b0a30380f68f8
Accept missing semicolon after do-while statement.

Although not valid according to ECMA 5.1, both JSC and V8 accept a
missing semicolon after a do-while loop. (Both JSC and V8 do not do this
through automatic semicolon insertion, but handle it as a special case.)

Change-Id: Iff2b07b894564740d2dcbf9b1d46bc279d30b9e3
Reviewed-by: Alan Alpert <aalpert@rim.com>
src/qml/qml/parser/parser.pri
src/qml/qml/parser/qqmljs.g
src/qml/qml/parser/qqmljsgrammar.cpp
src/qml/qml/parser/qqmljsgrammar_p.h
src/qml/qml/parser/qqmljsparser.cpp
src/qml/qml/parser/qqmljsparser_p.h
tests/auto/qml/qqmlecmascript/data/compatibilitySemicolon.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
tools/qmlmin/main.cpp