Fix tst_qjsengine::jsIncDecNonObjectProperty
authorSimon Hausmann <simon.hausmann@digia.com>
Sun, 23 Jun 2013 18:11:21 +0000 (20:11 +0200)
committerLars Knoll <lars.knoll@digia.com>
Sun, 23 Jun 2013 19:42:21 +0000 (21:42 +0200)
commit88372640dda9762ef6470930c7ee3fefe694c5ce
treea9abe39d52535eb42296ea20ae0b1bf4b20c8cb7
parent73e7fad503336e6df87849e69ee8ea7e92914453
Fix tst_qjsengine::jsIncDecNonObjectProperty

With pre increment/decrement expressions, don't rely on the
target expr to be readable after the write to it. In case of
++someString.length for example the value of the property may not
change, but the result of the expression still has to be the
incremented value.

Change-Id: I2389eeee38dbed75aa2764638cb40950e32b8a68
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/v4/qv4codegen.cpp