Fix toString and destroy on QObject JS bindings
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 27 May 2013 18:23:13 +0000 (20:23 +0200)
committerLars Knoll <lars.knoll@digia.com>
Tue, 28 May 2013 19:45:04 +0000 (21:45 +0200)
commit00a07bcbd7a592072822b0e55ab2e75e90c3f9f5
tree1aca723a9e626738d4033c9c05bba85849b0eb9b
parent087edaae102a0ff84583c9346acb359e9ea8478d
Fix toString and destroy on QObject JS bindings

The auto-tests requires these member functions to not rely on the
thisObject at all.

Also fixed lookup of QObject properties through the context wrapper
to go through get() as the new interface (to catch destroy/toString).

Change-Id: Iacbe8b5ce1895195a84a1224faba3f3bd34cd03b
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/v8/qv8contextwrapper.cpp
src/qml/qml/v8/qv8qobjectwrapper.cpp
src/qml/qml/v8/qv8qobjectwrapper_p.h
src/qml/qml/v8/v8.pri