Handle exceptions while compiling v8 bindings
authorChris Adams <christopher.adams@nokia.com>
Fri, 30 Dec 2011 03:20:33 +0000 (13:20 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 9 Feb 2012 03:54:25 +0000 (04:54 +0100)
commitfdf80ee4677a3b83c00e69071e614cadf54f9897
tree64c27aea85e58c07c3574cb11d19a55567c09831
parente51bb395b466bcf88042688ffaf14b0d9fad61fe
Handle exceptions while compiling v8 bindings

Previously, no exception handling existed, which could cause a crash
if an invalid v8 binding expression was generated.  Such invalid
bindings should usually be rewritten into valid form by the bindings
rewriter, but in some cases it is too costly to do so, so we need
to handle exceptions.

Task-number: QTBUG-24064
Task-number: QTBUG-23387
Change-Id: I7da12a936780a561c9e9cad3a4a7b62c06d6973e
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/declarative/qml/qdeclarativevme.cpp
src/declarative/qml/v8/qv8bindings.cpp
tests/auto/declarative/qdeclarativeecmascript/data/v8bindingException.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp