No issue - Turn worker runnable assertion into something harmless in debug builds

It's annoying.
This commit is contained in:
FranklinDM 2024-03-29 20:32:33 +08:00 committed by roytam1
commit 41eb02d1e1

View file

@ -242,9 +242,9 @@ WorkerRunnable::Run()
// underlying WorkerThreadPrimaryRunnable active, which means we should
// find a CycleCollectedJSContext.
if (!CycleCollectedJSContext::Get()) {
MOZ_DIAGNOSTIC_ASSERT(false,
"A WorkerRunnable was executed after "
"WorkerThreadPrimaryRunnable ended.");
NS_ASSERTION(false,
"A WorkerRunnable was executed after "
"WorkerThreadPrimaryRunnable ended.");
return NS_OK;
}