diff --git a/js/src/ds/LifoAlloc.cpp b/js/src/ds/LifoAlloc.cpp index 0d9707af3051..bd1cf7c5e0b7 100644 --- a/js/src/ds/LifoAlloc.cpp +++ b/js/src/ds/LifoAlloc.cpp @@ -102,6 +102,7 @@ LifoAlloc::getOrCreateChunk(size_t n) } // If we get here, we couldn't find an existing BumpChunk to fill the request. + MOZ_ASSERT(fallibleScope_, "[OOM] Cannot allocate a new chunk in an infallible scope."); BumpChunk* newChunk = BumpChunk::new_(chunkSize); if (!newChunk) return nullptr;