mirror of
https://github.com/denoland/deno.git
synced 2024-12-26 00:59:24 -05:00
16 lines
310 B
JavaScript
16 lines
310 B
JavaScript
|
const mod = await import("./top_level_await_bug_nested.js");
|
||
|
console.log(mod);
|
||
|
|
||
|
const sleep = (n) => new Promise((r) => setTimeout(r, n));
|
||
|
|
||
|
await sleep(100);
|
||
|
console.log("slept");
|
||
|
|
||
|
window.addEventListener("load", () => {
|
||
|
console.log("load event");
|
||
|
});
|
||
|
|
||
|
setTimeout(() => {
|
||
|
console.log("timeout");
|
||
|
}, 1000);
|