head.js (607B)
1 /** 2 * Any copyright is dedicated to the Public Domain. 3 * http://creativecommons.org/publicdomain/zero/1.0/ 4 */ 5 6 async function require_module(id) { 7 if (!require_module.moduleLoader) { 8 importScripts("/tests/dom/quota/test/modules/worker/ModuleLoader.js"); 9 10 const base = location.href; 11 12 const depth = "../../../../../"; 13 14 importScripts("/tests/dom/quota/test/modules/worker/Assert.js"); 15 16 importScripts("/tests/dom/quota/test/modules/worker/Utils.js"); 17 18 require_module.moduleLoader = new globalThis.ModuleLoader(base, depth); 19 } 20 21 return require_module.moduleLoader.require(id); 22 }