Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/workers/test/xpcshell/data/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 886 B image not shown  

Quelle  base_uri_module.mjs   Sprache: unbekannt

 
Spracherkennung für: .mjs vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

// This file is for testing the module loader's path handling.
// ESLint rules that modifies path shouldn't be applied.

export const obj = {};

export async function doImport() {
  // This file is loaded as resource://test/data/base_uri_module.mjs
  // Relative/absolute paths should be resolved based on the URI, instead of
  // file: path.

  const namespaceWithURI =
    await import("resource://test/data/base_uri_module2.mjs");
  const namespaceWithCurrentDir = await import("./base_uri_module2.mjs");
  const namespaceWithParentDir = await import("../data/base_uri_module2.mjs");
  const namespaceWithAbsoluteDir = await import("/data/base_uri_module2.mjs");

  return {
    equal1: namespaceWithURI.obj2 == namespaceWithCurrentDir.obj2,
    equal2: namespaceWithURI.obj2 == namespaceWithParentDir.obj2,
    equal3: namespaceWithURI.obj2 == namespaceWithAbsoluteDir.obj2,
  };
}

[Dauer der Verarbeitung: 0.37 Sekunden]