mirror of
https://github.com/denoland/deno.git
synced 2024-11-27 16:10:57 -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);
|