mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
HACK: jsgc: check nullptr before call member function in mayBeOwnedByOtherRuntime()
This commit is contained in:
parent
f35b2f4d3d
commit
f4188fb54e
1 changed files with 2 additions and 2 deletions
|
|
@ -6580,8 +6580,8 @@ JS::GCCellPtr::outOfLineKind() const
|
|||
bool
|
||||
JS::GCCellPtr::mayBeOwnedByOtherRuntime() const
|
||||
{
|
||||
return (is<JSString>() && as<JSString>().isPermanentAtom()) ||
|
||||
(is<Symbol>() && as<Symbol>().isWellKnownSymbol());
|
||||
return (is<JSString>() && &as<JSString>() && as<JSString>().isPermanentAtom()) ||
|
||||
(is<Symbol>() && &as<Symbol>() && as<Symbol>().isWellKnownSymbol());
|
||||
}
|
||||
|
||||
#ifdef JSGC_HASH_TABLE_CHECKS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue