Make numeric-literal parsing more robust.
authorErik Verbruggen <erik.verbruggen@me.com>
Wed, 9 Jan 2013 19:34:39 +0000 (20:34 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 11 Jan 2013 11:34:49 +0000 (12:34 +0100)
commit4dbbaf6814d327ec4b182325a8bab59314cfaf23
tree1140db29b11fb360d017fef8cdae58517b94d1c3
parentad008479ac13b60890eccb982355b90ff738be4e
Make numeric-literal parsing more robust.

For cases where large non-fp numeric literals might end up triggering
coversion or rounding errors when stored as doubles when lexing.

This is a corner case, but it does trigger a case or two in the ECMA5
test suite (test262).

Change-Id: Ie6d355e28379aba9a339c4e345b5d2a0c32d5fdd
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/parser/qqmljslexer.cpp
tests/auto/qml/qqmllanguage/data/literals.qml
tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp