Made sort on non-arrays also affect elements on the prototype, for JSC compatability.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 1 May 2009 10:06:55 +0000 (10:06 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 1 May 2009 10:06:55 +0000 (10:06 +0000)
commit83d1d02df7fa65e3e15ab8faddbfc12bc7b2505a
tree3f8a083aea618af8c534ab1caa916fb65674007a
parentdc6a6f71b873acfcbc41668de3e3a5670b672662
Made sort on non-arrays also affect elements on the prototype, for JSC compatability.
Made sort on non-objects with inherited elements JSC compatible.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1829 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/array.js
src/runtime.cc
test/mjsunit/array-sort.js