mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-06-27 11:50:50 +00:00
Fix Value::isGCThing footgun, stop returning true for NullValue
This commit is contained in:
+1
-1
@@ -3309,7 +3309,7 @@ js::detail::CopyScript(JSContext* cx, HandleScript src, HandleScript dst,
|
||||
GCPtrValue* vector = Rebase<GCPtrValue>(dst, src, src->consts()->vector);
|
||||
dst->consts()->vector = vector;
|
||||
for (unsigned i = 0; i < nconsts; ++i)
|
||||
MOZ_ASSERT_IF(vector[i].isMarkable(), vector[i].toString()->isAtom());
|
||||
MOZ_ASSERT_IF(vector[i].isGCThing(), vector[i].toString()->isAtom());
|
||||
}
|
||||
if (nobjects != 0) {
|
||||
GCPtrObject* vector = Rebase<GCPtrObject>(dst, src, src->objects()->vector);
|
||||
|
||||
Reference in New Issue
Block a user