diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
commit | da4c7e7ed675c3bf405668739c3012d140856109 (patch) | |
tree | cdd868dba063fecba609a1d819de271f0d51b23e /devtools/shared/heapsnapshot | |
parent | Adding upstream version 125.0.3. (diff) | |
download | firefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip |
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/shared/heapsnapshot')
-rw-r--r-- | devtools/shared/heapsnapshot/HeapAnalysesClient.js | 9 |
1 files changed, 5 insertions, 4 deletions
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, }); |