Fix Issue 326. Handle sorting of non-array objects correctly.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 27 Apr 2009 11:16:59 +0000 (11:16 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 27 Apr 2009 11:16:59 +0000 (11:16 +0000)
commit889eac7f13e0c61a32b3fc7632a4ae19749ce951
treea8178d8f96096435a5fcfa156c8733951d9bbe50
parentb1d09b32f9a4a96a657b69aabb6a07efd9c4b0b7
Fix Issue 326. Handle sorting of non-array objects correctly.
Change handling of sorting to be the same for all JS-arrays.
Collect undefined values as well while removing holes.

Review URL: http://codereview.chromium.org/92123

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1800 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/array.js
src/globals.h
src/objects.cc
src/objects.h
src/runtime.cc
src/runtime.h
test/mjsunit/array-sort.js
test/mjsunit/regress/regress-326.js [new file with mode: 0644]