mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
Fix Value::isGCThing footgun, stop returning true for NullValue
This commit is contained in:
parent
9d2e0ff0c4
commit
10b24b8110
31 changed files with 87 additions and 103 deletions
|
|
@ -2686,7 +2686,7 @@ public:
|
|||
void* aClosure) const override
|
||||
{
|
||||
const JS::Value& val = aValue->unbarrieredGet();
|
||||
if (val.isMarkable() && ValueIsGrayCCThing(val)) {
|
||||
if (val.isGCThing() && ValueIsGrayCCThing(val)) {
|
||||
MOZ_ASSERT(!js::gc::IsInsideNursery(val.toGCThing()));
|
||||
mCollector->GetJSPurpleBuffer()->mValues.InfallibleAppend(val);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue