mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00

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.