Throw a type error if defaultValue doesn't lead to a primitive type
authorLars Knoll <lars.knoll@digia.com>
Wed, 12 Dec 2012 18:06:19 +0000 (19:06 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Wed, 12 Dec 2012 09:49:41 +0000 (10:49 +0100)
commit363a7b57d87b72ffd906dfb437774a3cdb9c3bda
treed8346c2bf136ff2756ebbc549337d3ee07291109
parentd597083c012274d9a591e0805e2d892393cc9e89
Throw a type error if defaultValue doesn't lead to a primitive type

As specified in 8.12.8, we need to throw a type error if calling
[[defaultValue]] on an object doesn't convert to a primitive
type.

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