diff --git a/dom/worklet/Worklet.cpp b/dom/worklet/Worklet.cpp index 40598c25bd53..7c60560aa931 100644 --- a/dom/worklet/Worklet.cpp +++ b/dom/worklet/Worklet.cpp @@ -374,9 +374,6 @@ void ExecutionRunnable::RunOnWorkletThread() { AutoEntryScript aes(globalScope, "Worklet"); JSContext* cx = aes.cx(); - JS::Rooted globalObj(cx, globalScope->GetGlobalJSObject()); - JSAutoRealm ar(cx, globalObj); - JS::Rooted module(cx); if (!ParseAndLinkModule(cx, &module)) { ErrorResult error;