Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

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.20 Sekunden, vorverarbeitet 2026-08-26]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002