Add QJSValue::call() overload
authorKent Hansen <kent.hansen@nokia.com>
Fri, 20 Jan 2012 07:00:27 +0000 (08:00 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 20 Jan 2012 22:35:18 +0000 (23:35 +0100)
commit95cee5d6e514891aab160c8e1fc4814c147ab3a6
treebac0e5c4bd8c23623e92f3f5de20d4acd47c7b3a
parentdfad4902b7227540baa2a15f894fe8937c3c6e15
Add QJSValue::call() overload

This overload takes only an argument list, not a this-object, since
that is a very common way of calling stand-alone ("non-member")
functions. Now there is no longer a need to pass a dummy value for
the this-object.

Task-number: QTBUG-23604
Change-Id: Iae952d91fce5bcaa62a05b9978c15f32802da90a
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
src/declarative/qml/v8/qjsvalue.cpp
src/declarative/qml/v8/qjsvalue.h
tests/auto/declarative/qdeclarativeecmascript/testtypes.cpp
tests/auto/declarative/qjsengine/tst_qjsengine.cpp
tests/auto/declarative/qjsvalue/tst_qjsvalue.cpp