Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Low
New issue 326 by [email protected]: Array sort on non-array objects doesn't
preserve missing elements
http://code.google.com/p/v8/issues/detail?id=326
When sorting a non-array, non-existing properties should be moved to the
end of the array, but still not be properties of the object. Instead they
are converted to existing properties with the value "undefined".
Example:
3 in ([].sort.call({length:4,1:4,2:1}))
evaluates to true, should be false.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---