Adjust the 'BaseException' unit-test for the 'Error.stack' changes in Firefox

Firefox 154 no longer walks the prototype chain in the `Error.stack`
getter, so `BaseException`-derived instances return an empty string
rather than the prototype `Error`'s stack (see bug 1946559).
This commit is contained in:
Calixte Denizet 2026-06-16 20:14:06 +02:00
parent 7f7b38b424
commit 5432642250

View File

@ -37,7 +37,6 @@ describe("util", function () {
expect(exception.message).toEqual("Something went wrong");
expect(exception.name).toEqual("DerivedException");
expect(exception.foo).toEqual("bar");
expect(exception.stack).toContain("BaseExceptionClosure");
});
});