1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-15 11:58:42 -05:00
denoland-deno/cli/tests/testdata/run/top_level_await/loop.js

21 lines
476 B
JavaScript
Raw Normal View History

const importsDir = Deno.readDirSync(
Deno.realPathSync("./run/top_level_await/tla2"),
);
const resolvedPaths = [];
for (const { name } of importsDir) {
const filePath = Deno.realPathSync(`./run/top_level_await/tla2/${name}`);
resolvedPaths.push(filePath);
}
resolvedPaths.sort();
for (const filePath of resolvedPaths) {
console.log("loading", filePath);
const mod = await import(`file://${filePath}`);
console.log("loaded", mod);
}
console.log("all loaded");