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