diff --git a/js/src/jsgc.cpp b/js/src/jsgc.cpp index fb3c8e7662ba..a7006ceacce2 100644 --- a/js/src/jsgc.cpp +++ b/js/src/jsgc.cpp @@ -7343,6 +7343,11 @@ js::gc::CheckHashTablesAfterMovingGC(JSRuntime* rt) */ for (ZonesIter zone(rt, SkipAtoms); !zone.done(); zone.next()) { zone->checkUniqueIdTableAfterMovingGC(); + + // ZoneCellIter could GC were this not called under GC. + MOZ_ASSERT(rt->isHeapBusy()); + JS::AutoSuppressGCAnalysis noAnalysis; + for (ZoneCellIter i(zone, AllocKind::BASE_SHAPE); !i.done(); i.next()) { BaseShape* baseShape = i.get(); if (baseShape->hasTable())