summaryrefslogtreecommitdiffstats
path: root/devtools/shared/heapsnapshot
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /devtools/shared/heapsnapshot
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 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.js9
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,
});