Fix crash when throwing an exception from within a constructor
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 23 Jul 2014 13:10:58 +0000 (15:10 +0200)
committerLars Knoll <lars.knoll@digia.com>
Thu, 31 Jul 2014 07:03:00 +0000 (09:03 +0200)
commit2064a262bfeca56820b906d89f0255e5185f3320
tree6b832758d32fd4c1d008d20f95197dcef4f269f6
parent59d5c5cf555a51cd7559cea197a198ef3a792614
Fix crash when throwing an exception from within a constructor

We need to check for the exception before doing anything with the returned
value.

Change-Id: I0086be96b2df2434b95187489d7430ae67f561a1
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/jsruntime/qv4functionobject.cpp