Console API: Print JS object
authorAurindam Jana <aurindam.jana@nokia.com>
Tue, 5 Jun 2012 11:34:40 +0000 (13:34 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Aug 2012 12:05:28 +0000 (14:05 +0200)
commitcc878137fcf984eb1d6ecec74d4b807e49874d8b
tree25b51c0056cb7b41ed95898effa2892beccda6fa
parentb94b5531b0684965a205d6b0ec744c3482de3940
Console API: Print JS object

Calling console.log(), console.debug(), print() etc would only
print out "Object" if a JS Object was passed as an argument.
This patch calls the toString() on the object.

Change-Id: Iadf8b4d1fe81c3e2c7bd65e3c153a930fd994bef
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
src/qml/qml/v8/qqmlbuiltinfunctions.cpp
tests/auto/qml/qqmlconsole/data/logging.qml
tests/auto/qml/qqmlconsole/tst_qqmlconsole.cpp