Details
-
Sub-task
-
Resolution: Fixed
-
P4
-
None
-
None
-
b87
-
generic
-
generic
-
Verified
Description
When comparator function returns negative and positive infinite values as in
[2,1].sort(
function(x,y) {
return x<y? -Infinity : ( (x>y)? Infinity : 0 )
})
Sort does not work as expected.
[2,1].sort(
function(x,y) {
return x<y? -Infinity : ( (x>y)? Infinity : 0 )
})
Sort does not work as expected.