mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-13 18:45:52 +02:00
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:
parent
7f7b38b424
commit
5432642250
@ -37,7 +37,6 @@ describe("util", function () {
|
|||||||
expect(exception.message).toEqual("Something went wrong");
|
expect(exception.message).toEqual("Something went wrong");
|
||||||
expect(exception.name).toEqual("DerivedException");
|
expect(exception.name).toEqual("DerivedException");
|
||||||
expect(exception.foo).toEqual("bar");
|
expect(exception.foo).toEqual("bar");
|
||||||
expect(exception.stack).toContain("BaseExceptionClosure");
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user