зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1354810, CycleCollectedJSContext::Get() needs to be null-checked, r=baku
This commit is contained in:
Родитель
adbc9c9d4f
Коммит
77bb87e5eb
|
@ -570,6 +570,9 @@ Promise::PerformWorkerMicroTaskCheckpoint()
|
|||
MOZ_ASSERT(!NS_IsMainThread(), "Wrong thread!");
|
||||
|
||||
CycleCollectedJSContext* context = CycleCollectedJSContext::Get();
|
||||
if (!context) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
// For a normal microtask checkpoint, we try to use the debugger microtask
|
||||
|
@ -604,6 +607,9 @@ Promise::PerformWorkerDebuggerMicroTaskCheckpoint()
|
|||
MOZ_ASSERT(!NS_IsMainThread(), "Wrong thread!");
|
||||
|
||||
CycleCollectedJSContext* context = CycleCollectedJSContext::Get();
|
||||
if (!context) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
// For a debugger microtask checkpoint, we always use the debugger microtask
|
||||
|
|
Загрузка…
Ссылка в новой задаче