Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/base/test/jsmodules/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  test_nested_modules.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/dom/base/test/jsmodules/test_nested_modules.html


<!DOCTYPE html>
<meta charset=utf-8>
<title>Test nested module</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script>
  SimpleTest.waitForExplicitFinish();
  SimpleTest.requestLongerTimeout(2);

  // eslint-disable-next-line no-unused-vars
  function testLoaded() {
    ok(true, 'Not crash');
    SimpleTest.finish();
  }

  async function generateModules(n, parseError) {
    const urls = [];

    const leaf = parseError ? `^%$#@!` :
      `console.log("Hello from module ${n}");`;

    for (let i = n; i >= 1i--) {
      const nextUrl = urls[0] || '';
      const content = i === n
        ? leaf
        : `import "${nextUrl}";\nconsole.log("Entered module ${i}");`;

      const blob = new Blob([content], { type: 'application/javascript' });
      const blobURL = URL.createObjectURL(blob);
      urls.unshift(blobURL); // Add to the beginning for next import
    }

    // Start execution from the topmost module
    const mainModuleURL = urls[0];
    try {
      await import(mainModuleURL);
    } catch (e) {
      console.error("Module import failed:", e);
    }

    urls.forEach(URL.revokeObjectURL);
  }

  generateModules(4000);
  generateModules(10000);
  generateModules(10000, true);
</script>
<body onload='testLoaded()'></body>

Messung V0.5 in Prozent
C=86 H=100 G=93

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.