From 41eb02d1e1785811fa4219dbe16e45843a6a7e32 Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Fri, 29 Mar 2024 20:32:33 +0800 Subject: [PATCH] No issue - Turn worker runnable assertion into something harmless in debug builds It's annoying. --- dom/workers/WorkerRunnable.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dom/workers/WorkerRunnable.cpp b/dom/workers/WorkerRunnable.cpp index 9049878710..9949efa665 100644 --- a/dom/workers/WorkerRunnable.cpp +++ b/dom/workers/WorkerRunnable.cpp @@ -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; }