Fix crash when calling concat on an empty array
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 14 Mar 2014 15:00:36 +0000 (16:00 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 15 Mar 2014 16:33:48 +0000 (17:33 +0100)
commit156508dbc058e8d43106afb19d1dee50f5d65b93
tree30056c2779d660456755949f8edf1664efa66607
parentaf41170bc5e4c1be194bb9bbe883b00c2f7062b7
Fix crash when calling concat on an empty array

Make sure to create the array data. The earlier called copyArrayData()
doesn't have to do that.

Task-number: QTBUG-37506
Change-Id: I6671769fcd471234c4c2eaa1614aa61266db0e5c
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/jsruntime/qv4arraydata.cpp
tests/auto/qml/qjsengine/tst_qjsengine.cpp