blob: a85913431bb6b2594e9e7f6847c3be1f19836795 (
plain)
1
2
3
4
5
6
7
|
let arr = [1, 2, 3, 4, 5, 6, 7, 8];
arr.sort((x, y) => {
enableGeckoProfilingWithSlowAssertions();
readGeckoProfilingStack();
return y - x;
});
assertEq(arr.toString(), "8,7,6,5,4,3,2,1");
|