Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/modules/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 871 B image not shown  

Quelle  bug-2043302-1.js

  Sprache: JAVA
 

load(libdir + "asserts.js");

registerModule('b', parseModule(`export const x = 1;`));
registerModule('d', parseModule(`export const x = 2;`));
registerModule('a', parseModule(`export * from 'b';\nexport * from 'd';`));
// c's star export of 'a' is at line 3 (two blank lines above)
registerModule('c', parseModule(`\n\nexport * from 'a';`));
// entry's import is at line 1
registerModule('entry', parseModule(`import { x } from 'c';`));

let caught = false;
import("entry").then(
  () => {
    assertEq(falsetrue"expected import to fail");
  },
  e => {
    caught = true;
    assertEq(e instanceof SyntaxError, true);
    assertEq(String(e.message).includes("ambiguous"), true);
    // Error must point to the import in 'entry' (line 1),
    // not to the star export in 'c' (line 3).
    assertEq(e.lineNumber, 1);
  }
);

drainJobQueue();
assertEq(caught, true);

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

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© 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.