From 3cebe4550f241ff7f655f27e6895008c720dc350 Mon Sep 17 00:00:00 2001 From: Karl Tomlinson Date: Mon, 12 Aug 2019 11:50:42 +0000 Subject: [PATCH] Bug 1473463 remove unnecessary JSAutoRealm as realm is set by AutoEntryScript r=baku Differential Revision: https://phabricator.services.mozilla.com/D41341 --HG-- extra : moz-landing-system : lando --- dom/worklet/Worklet.cpp | 3 --- 1 file changed, 3 deletions(-) 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;