icecat: add release icecat-140.6.0-1gnu1 for ecne

This commit is contained in:
Ark74 2026-01-17 19:26:27 -06:00
parent 618c9f4145
commit 7d0f5dab3b
3382 changed files with 457689 additions and 569094 deletions

View file

@ -5927,7 +5927,11 @@ void WorkerPrivate::ReportError(JSContext* aCx,
}
JS::ExceptionStack exnStack(aCx);
if (JS_IsExceptionPending(aCx)) {
// NOTE: This function is used both for errors and warnings, and warnings
// can be reported while there's a pending exception.
// Warnings are always reported with non-null JSErrorReport.
if (!aReport || !aReport->isWarning()) {
MOZ_ASSERT(JS_IsExceptionPending(aCx));
if (!JS::StealPendingExceptionStack(aCx, &exnStack)) {
JS_ClearPendingException(aCx);
return;
@ -5941,10 +5945,6 @@ void WorkerPrivate::ReportError(JSContext* aCx,
JSAutoRealm ar(aCx, stackGlobal);
report->SerializeWorkerStack(aCx, this, stack);
}
} else {
// ReportError is also used for reporting warnings,
// so there won't be a pending exception.
MOZ_ASSERT(aReport && aReport->isWarning());
}
if (report->mMessage.IsEmpty() && aToStringResult) {