let result; import.source("<module source>").then(
(moduleSource) => {
result = moduleSource;
},
(error) => { thrownew Error("import.source should not have been rejected: " + error);
}
);
// Calling the AbstractModuleSource constructor should throw a TypeError.
assertThrowsInstanceOf(() => new AbstractModuleSource(), TypeError);
assertThrowsInstanceOf(() => AbstractModuleSource(), TypeError);
// import.source on a JavaScript module should reject with a SyntaxError.
let error; import.source("empty.js").then(
() => { thrownew Error("import.source should have been rejected");
},
(e) => {
error = e;
}
);
drainJobQueue();
assertEq(error instanceof SyntaxError, true);
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-08-25)
¤
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.