diff options
author | Erik Verbruggen <erik.verbruggen@me.com> | 2013-03-18 15:30:55 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-19 01:57:27 +0100 |
commit | a89a652bf5a9cb01ad2babc4c1374ba0b4d07edd (patch) | |
tree | 894fabdae7898cf02b5bb8b050506b5806585d8e /tests/auto/qml/qqmlecmascript/data/stringParsing_error.6.qml | |
parent | 9237c2ecb5c6fc8820c28a636d1112990c950bbe (diff) |
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>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/stringParsing_error.6.qml')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/data/stringParsing_error.6.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/stringParsing_error.6.qml b/tests/auto/qml/qqmlecmascript/data/stringParsing_error.6.qml new file mode 100644 index 0000000000..8ee5b59d9e --- /dev/null +++ b/tests/auto/qml/qqmlecmascript/data/stringParsing_error.6.qml @@ -0,0 +1,9 @@ + +import QtQuick 2.0 + +QtObject { + function code() { + "\x0G" + } +} + |