mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
28d48c8abb
Assert.rejects uses callbacks in a way that the stack no longer includes the original caller in the stack when the stack is generated. Consequently, when AssertionError tries to identify the caller, it is unable to do so, resulting in a `null` stack. This `null` stack is passed by the SpecialPowers glue to `do_report_result` in xpcshell/head.js, which doesn't expect a `null` stack, and consequently the following error is reported: "TypeError: can't access property "filename", stack is null" To fix this issue, we save the stack (including the caller) upon entering `Assert.rejects`, and forward that to `AssertionError`. Differential Revision: https://phabricator.services.mozilla.com/D189863 |
||
---|---|---|
.. | ||
tests | ||
AppData.sys.mjs | ||
AppInfo.sys.mjs | ||
Assert.sys.mjs | ||
CoverageUtils.sys.mjs | ||
FileTestUtils.sys.mjs | ||
MockRegistrar.sys.mjs | ||
MockRegistry.sys.mjs | ||
moz.build | ||
sinon-7.2.7.js | ||
Sinon.sys.mjs | ||
StructuredLog.sys.mjs | ||
TestUtils.sys.mjs | ||
XPCShellContentUtils.sys.mjs |