mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +09:00
[devtools] More gracefully (than a crash) handle stack capture failures.
This commit is contained in:
parent
5026bdf5ee
commit
3e118e4948
1 changed files with 3 additions and 1 deletions
|
|
@ -7039,7 +7039,9 @@ JS::CaptureCurrentStack(JSContext* cx, JS::MutableHandleObject stackp,
|
|||
{
|
||||
AssertHeapIsIdle(cx);
|
||||
CHECK_REQUEST(cx);
|
||||
MOZ_RELEASE_ASSERT(cx->compartment());
|
||||
if (!cx->compartment()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
JSCompartment* compartment = cx->compartment();
|
||||
Rooted<SavedFrame*> frame(cx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue