Bug 1457475 - Demote MOZ_DIAGNOSTIC_ASSERT to MOZ_ASSERT. r=jonco

This commit is contained in:
Jan de Mooij 2018-04-30 10:47:06 +02:00
Родитель 81d70e03c7
Коммит d773a62755
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1669,7 +1669,7 @@ GlobalHelperThreadState::finishParseTask(JSContext* cx, ParseTaskKind kind, void
if (!script) { if (!script) {
// No error was reported, but no script produced. Assume we hit out of // No error was reported, but no script produced. Assume we hit out of
// memory. // memory.
MOZ_DIAGNOSTIC_ASSERT(false); MOZ_ASSERT(false, "Expected script");
ReportOutOfMemory(cx); ReportOutOfMemory(cx);
return nullptr; return nullptr;
} }
@ -1706,7 +1706,7 @@ GlobalHelperThreadState::finishParseTask(JSContext* cx, ParseTaskKind kind, void
if (scripts.length() != expectedLength) { if (scripts.length() != expectedLength) {
// No error was reported, but fewer scripts produced than expected. // No error was reported, but fewer scripts produced than expected.
// Assume we hit out of memory. // Assume we hit out of memory.
MOZ_DIAGNOSTIC_ASSERT(false); MOZ_ASSERT(false, "Expected more scripts");
ReportOutOfMemory(cx); ReportOutOfMemory(cx);
return false; return false;
} }