tst_qdeclarativedebugjs: Use new QJSValue::call() overload
authorKent Hansen <kent.hansen@nokia.com>
Fri, 20 Jan 2012 07:00:50 +0000 (08:00 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 25 Jan 2012 06:46:43 +0000 (07:46 +0100)
commit38c93a9f6f33be074f4d6ab7348d5f26f83efcd0
treebe382fdcc0aeba4a0b9398daf6ef68ba4e104647
parent6486fe6136e2999352fcbe13530868ec5f901276
tst_qdeclarativedebugjs: Use new QJSValue::call() overload

The old QJSValue::call() function that takes a this-object as the
first argument is going away. The new overload simply takes a list
of arguments, so that the "dummy" this-object doesn't have to be
explicitly passed.

The new function callWithInstance() can be used to call a function
where you want to use a specific this-object.

Change-Id: I2d9bd79f8e5d00a2b89568171ccc5ffcee52686c
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp