mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-01 19:39:13 +00:00
9e50a5d27b
Array.prototype.sort(comparefn) was casting the result of the compare to an int, which lost when the compare function returned (ecma-valid) strange double values. These now get clamped to -1, 0, 1.