Fix crash in var property setter
authorChris Adams <christopher.adams@nokia.com>
Fri, 23 Dec 2011 03:01:25 +0000 (13:01 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 23 Dec 2011 03:20:18 +0000 (04:20 +0100)
commit1f4fe0aca4fc70ece7235623aaf88225531f1243
tree57d86bdefeabc681e8fd235522d7f7d571b6b103
parent9e61464c9026c4b766e05ea8c784f8e6a615adba
Fix crash in var property setter

Previously, the function didn't terminate after calling the setter
recursively, as it should have.  This patch ensures that the setter
is called correctly and then returns, and adds a unit test to ensure
that no regression occurs.

Task-number: QTBUG-23330
Change-Id: If512fca174e5224c2c53caad11f77782e6cead9f
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/declarative/qml/qdeclarativevmemetaobject.cpp
tests/auto/declarative/qdeclarativeecmascript/data/PropertyVarBaseItem.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.10.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp