зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1839396 part 2 - GenericPrinter: avoid double exception report. r=mgaudet
The `GenericPrinterPrintTarget` uses the same `GenericPrinter`, which already handles the out-of-memory reporting. Thus, there is no need to report it once more in `GenericPrinter::vprintf`. Differential Revision: https://phabricator.services.mozilla.com/D181487
This commit is contained in:
Родитель
df269a464c
Коммит
90f335fdf8
|
@ -62,11 +62,7 @@ bool GenericPrinter::vprintf(const char* fmt, va_list ap) {
|
|||
}
|
||||
|
||||
GenericPrinterPrintfTarget printer(*this);
|
||||
if (!printer.vprint(fmt, ap)) {
|
||||
reportOutOfMemory();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return printer.vprint(fmt, ap);
|
||||
}
|
||||
|
||||
const size_t Sprinter::DefaultSize = 64;
|
||||
|
|
Загрузка…
Ссылка в новой задаче