Fix Array.prototype.splice to not require the instance to be a true array
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 13 Jun 2013 12:22:49 +0000 (14:22 +0200)
committerLars Knoll <lars.knoll@digia.com>
Thu, 13 Jun 2013 15:46:45 +0000 (17:46 +0200)
commit91a835a1731a10e73546057196855b3fa685f95a
tree619bd4d8799e63029c492bb83617b33f3adf9c0d
parent19e4901e74fe29cdb11302873bd96641dd9b97da
Fix Array.prototype.splice to not require the instance to be a true array

Use putIndexed instead of arraySet, so that it also works with "host" arrays.
Fixes tst_qqmlecmascript::sequenceConversionArray, which calls splice on a
JS-wrapped QList<QString>

Change-Id: Ic9cbf12d625adf7c3c47ce4a7996d2623f843601
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/v4/qv4arrayobject.cpp