зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1457475 - Demote MOZ_DIAGNOSTIC_ASSERT to MOZ_ASSERT. r=jonco
This commit is contained in:
Родитель
81d70e03c7
Коммит
d773a62755
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче