MIRROR: javascript for 馃悳's, a tiny runtime with big ambitions
1function assert(condition, message) {
2 if (!condition) throw new Error(message);
3}
4
5import { loadChildLater } from './import_dynamic_filename_capture_exporter.mjs';
6
7const childFilename = await loadChildLater();
8
9assert(
10 childFilename.endsWith('/tests/import_dynamic_filename_capture_child.mjs'),
11 `late dynamic import resolved from wrong base: ${childFilename}`
12);
13
14console.log(`import.dynamic.filename.late:${childFilename}`);