From d8bbc7858622b6d9c278469aab701ca0b609cddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:35:49 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- devtools/shared/heapsnapshot/HeapAnalysesClient.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'devtools/shared/heapsnapshot') diff --git a/devtools/shared/heapsnapshot/HeapAnalysesClient.js b/devtools/shared/heapsnapshot/HeapAnalysesClient.js index a77d9397a5..278b591247 100644 --- a/devtools/shared/heapsnapshot/HeapAnalysesClient.js +++ b/devtools/shared/heapsnapshot/HeapAnalysesClient.js @@ -5,9 +5,10 @@ "use strict"; const DevToolsUtils = require("resource://devtools/shared/DevToolsUtils.js"); -const { - DevToolsWorker, -} = require("resource://devtools/shared/worker/worker.js"); +const lazy = {}; +ChromeUtils.defineESModuleGetters(lazy, { + DevToolsWorker: "resource://devtools/shared/worker/worker.sys.mjs", +}); const WORKER_URL = "resource://devtools/shared/heapsnapshot/HeapAnalyses.worker.js"; @@ -21,7 +22,7 @@ var workerCounter = 0; * terminating the client (see the `destroy` method). */ const HeapAnalysesClient = (module.exports = function () { - this._worker = new DevToolsWorker(WORKER_URL, { + this._worker = new lazy.DevToolsWorker(WORKER_URL, { name: `HeapAnalyses-${workerCounter++}`, verbose: DevToolsUtils.dumpv.wantVerbose, }); -- cgit v1.2.3