Fix hexadecimal escape sequence validation in strings.
authorErik Verbruggen <erik.verbruggen@me.com>
Mon, 18 Mar 2013 14:30:55 +0000 (15:30 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 19 Mar 2013 00:57:27 +0000 (01:57 +0100)
commita89a652bf5a9cb01ad2babc4c1374ba0b4d07edd
tree894fabdae7898cf02b5bb8b050506b5806585d8e
parent9237c2ecb5c6fc8820c28a636d1112990c950bbe
Fix hexadecimal escape sequence validation in strings.

Give an error message when the sequence does not conform to the grammar.
Although the specification does not explicitly state that this is an
error, this is the behaviour of both JSC and V8.

Change-Id: I34d189f07628bc6cc40b13bfbb8d09bee7810ced
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/parser/qqmljslexer.cpp
src/qml/qml/parser/qqmljslexer_p.h
tests/auto/qml/parserstress/tests/ecma/LexicalConventions/7.7.4.js
tests/auto/qml/parserstress/tests/ecma_2/RegExp/hex-001.js
tests/auto/qml/qmlmin/tst_qmlmin.cpp
tests/auto/qml/qqmlecmascript/data/stringParsing_error.6.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp