mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
[js] Avoid potential crash if GC cell is no longer valid.
This commit is contained in:
parent
ff89fee91d
commit
6c6ab6de1a
1 changed files with 1 additions and 1 deletions
|
|
@ -7138,7 +7138,7 @@ JS_PUBLIC_API(bool)
|
|||
js::gc::detail::CellIsMarkedGrayIfKnown(const Cell* cell)
|
||||
{
|
||||
MOZ_ASSERT(cell);
|
||||
if (!cell->isTenured())
|
||||
if (!cell || !cell->isTenured())
|
||||
return false;
|
||||
|
||||
// We ignore the gray marking state of cells and return false in two cases:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue