1
0
Fork 0
firefox/dom/fs/test/xpcshell/worker/head.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

22 lines
589 B
JavaScript

/**
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
async function require_module(id) {
if (!require_module.moduleLoader) {
importScripts("/dom/quota/test/modules/worker/ModuleLoader.js");
const base = location.href;
const depth = "../../../../../";
importScripts("/dom/quota/test/modules/worker/Assert.js");
importScripts("/dom/quota/test/modules/worker/Utils.js");
require_module.moduleLoader = new globalThis.ModuleLoader(base, depth);
}
return require_module.moduleLoader.require(id);
}