closes #479: suppress bogus assert

This commit is contained in:
Cameron Kaiser 2018-02-19 20:04:35 -08:00
parent bd99fc9bfa
commit d06d5bc5f0

View File

@ -1551,9 +1551,11 @@ JSObject::fixDictionaryShapeAfterSwap()
bool
JSObject::swap(JSContext* cx, HandleObject a, HandleObject b)
{
#if(0) // See TenFourFox issue 479 for why we can get away with this.
// Ensure swap doesn't cause a finalizer to not be run.
MOZ_ASSERT(IsBackgroundFinalized(a->asTenured().getAllocKind()) ==
IsBackgroundFinalized(b->asTenured().getAllocKind()));
#endif
MOZ_ASSERT(a->compartment() == b->compartment());
AutoEnterOOMUnsafeRegion oomUnsafe;