diff options
Diffstat (limited to 'js/xpconnect/loader/mozJSModuleLoader.cpp')
-rw-r--r-- | js/xpconnect/loader/mozJSModuleLoader.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/xpconnect/loader/mozJSModuleLoader.cpp b/js/xpconnect/loader/mozJSModuleLoader.cpp index cdf4df1970..5a9b552357 100644 --- a/js/xpconnect/loader/mozJSModuleLoader.cpp +++ b/js/xpconnect/loader/mozJSModuleLoader.cpp @@ -788,9 +788,9 @@ class ScriptReaderRunnable final : public nsIRunnable, mRv = aRv; RefPtr<dom::MainThreadStopSyncLoopRunnable> runnable = - new dom::MainThreadStopSyncLoopRunnable( - mWorkerPrivate, std::move(mSyncLoopTarget), mRv); - MOZ_ALWAYS_TRUE(runnable->Dispatch()); + new dom::MainThreadStopSyncLoopRunnable(std::move(mSyncLoopTarget), + mRv); + MOZ_ALWAYS_TRUE(runnable->Dispatch(mWorkerPrivate)); mWorkerPrivate = nullptr; mSyncLoopTarget = nullptr; @@ -1505,7 +1505,7 @@ nsresult mozJSModuleLoader::GetLoadedJSAndESModules( #ifdef STARTUP_RECORDER_ENABLED void mozJSModuleLoader::RecordImportStack(JSContext* aCx, const nsACString& aLocation) { - if (!Preferences::GetBool("browser.startup.record", false)) { + if (!StaticPrefs::browser_startup_record()) { return; } @@ -1515,7 +1515,7 @@ void mozJSModuleLoader::RecordImportStack(JSContext* aCx, void mozJSModuleLoader::RecordImportStack( JSContext* aCx, JS::loader::ModuleLoadRequest* aRequest) { - if (!Preferences::GetBool("browser.startup.record", false)) { + if (!StaticPrefs::browser_startup_record()) { return; } |