Drop support for Firefox 102, 115, and 128 (old ESRs)

These browsers have bugs that occasionally cause typed array comparisons
to pass when they should fail, or vice versa:

* for...in loops sometimes omit keys, such that two typed arrays with
  different lengths appear to have the same set of keys.
* Typed arrays sometimes have mulitple undefined keys (which is to say that
  the key itself is undefined). Two typed arrays with identical length and
  contents can compare unequal because of the spurious undefined keys.)

Those problems could be avoided by comparing keys 0...length-1 rather than
the actual set of exposed keys, but that would be a pretty nasty breaking
change for anyone whose code tacks extra properties onto typed arrays. So
far these bugs haven't been seen in anything newer than FF 128. Since the
affected browsers are all past end of life, the most sensible thing is to
just stop testing against them.
This commit is contained in:
Steve Gravrock
2026-03-14 09:04:18 -07:00
parent 6c61b11a6e
commit 4ddb07ac2d
5 changed files with 6 additions and 18 deletions

View File

@@ -116,7 +116,7 @@ describe('StackTrace', function() {
]);
});
it('understands Safari <=14/Firefox style traces', function() {
it('understands Firefox style traces', function() {
const error = {
message: 'nope',
stack:

View File

@@ -128,8 +128,7 @@ describe('The jasmine namespace', function() {
return result;
}
// Can't use Set#difference yet because it isn't available in Node <22,
// Firefox <108, or Safari <17.
// Can't use Set#difference yet because it isn't available in Node <22
function setDifference(a, b) {
const result = new Set();