Fix crash in conversion from QVariantMap to QJSValue
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 28 Mar 2014 15:02:45 +0000 (16:02 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 28 Mar 2014 15:25:34 +0000 (16:25 +0100)
commitbc030defad916b073ede55d7a7ad8db9a41e0ad2
tree4cae2fe211c306ea50d52e3057b5fe0db4f6d28a
parent1526771ebf473af8a65bce77cfd16be67b6eb944
Fix crash in conversion from QVariantMap to QJSValue

When the key is an array index, use arraySet instead of trying to insert
an array index as internal class member.

Task-number: QTBUG-37854
Change-Id: I23f01cc9d6be98b57d3f13ac7ee847298e9632a3
Reviewed-by: Matt Broadstone <mbroadst@gmail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/qml/qml/v8/qv8engine.cpp
tests/auto/qml/qjsengine/tst_qjsengine.cpp