Fix test failures in Qt Location with string lists.
authorGlenn Watson <glenn.watson@nokia.com>
Thu, 9 Aug 2012 00:59:31 +0000 (10:59 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 9 Aug 2012 03:56:32 +0000 (05:56 +0200)
commit9c2ab7af355d0132af771f8784e42c13d1f49183
treebecee7b0b07997d3e056d0a1c31adb63d5a22737
parent409d25b659bde31c26ebd3366a57f770c158e19f
Fix test failures in Qt Location with string lists.

Cloning the V8 prototype introduces some unexpected behaviour in
the way string lists are used in Qt Location. Instead, leave the
prototype intact and used a named property accessor to return the
sort method for sequence wrappers.

A test case will be added to declarative once a more isolated test
case has been created.

Change-Id: I533a66f60af4394a2cc8c938fdfc13bd193f0065
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qml/qml/v8/qv8sequencewrapper.cpp
src/qml/qml/v8/qv8sequencewrapper_p.h