Bug 1072144 part 2. When UnregisterWorker tries to ScheduleWorker and that throws, just suppress the exception: there is no good place to report it anyway. r=khuey

This commit is contained in:
Boris Zbarsky 2016-03-01 16:52:26 -05:00
Родитель f333a329ae
Коммит c0ea0c742b
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -1666,6 +1666,9 @@ RuntimeService::UnregisterWorker(JSContext* aCx, WorkerPrivate* aWorkerPrivate)
if (queuedWorker && !ScheduleWorker(aCx, queuedWorker)) {
UnregisterWorker(aCx, queuedWorker);
// There's nowhere sane to report the exception from ScheduleWorker, if any,
// here.
JS_ClearPendingException(aCx);
}
}