diff --git a/dom/workers/WorkerPrivate.cpp b/dom/workers/WorkerPrivate.cpp index 3a5f179f3490..25fbc0f3e816 100644 --- a/dom/workers/WorkerPrivate.cpp +++ b/dom/workers/WorkerPrivate.cpp @@ -608,9 +608,6 @@ private: virtual bool WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate) override { - JS::Rooted target(aCx, JS::CurrentGlobalOrNull(aCx)); - NS_ASSERTION(target, "This must never be null!"); - aWorkerPrivate->CloseHandlerStarted(); WorkerGlobalScope* globalScope = aWorkerPrivate->GlobalScope();