Fix a bug in the construct method of Function objects
authorLars Knoll <lars.knoll@digia.com>
Fri, 14 Dec 2012 13:23:55 +0000 (14:23 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Fri, 14 Dec 2012 13:54:31 +0000 (14:54 +0100)
commit6c8466f0fd3cca892c03bc48ad12fe69e2d11137
treedeb6ce13ecb0ae0f8dea2ea9f898c6548a5a2b41
parentb6582ef2b917275064b511ee734d331fc35c3d4c
Fix a bug in the construct method of Function objects

Function objects when called as a contructor should return
the return value of the called function if the return value
is an object (see 13.2.2)

Change-Id: I9d9e52859935d62b7f949fff46cb00d257bad90f
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qmljs_objects.cpp