mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
345f0fbe5c
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
19 lines
425 B
TypeScript
19 lines
425 B
TypeScript
// deno-lint-ignore-file no-window-prefix
|
|
console.log("sync 1");
|
|
setTimeout(() => {
|
|
console.log("setTimeout 1");
|
|
Promise.resolve().then(() => {
|
|
console.log("Promise resolve in setTimeout 1");
|
|
});
|
|
});
|
|
Promise.resolve().then(() => {
|
|
console.log("promise 1");
|
|
});
|
|
window.close();
|
|
console.log("sync 2");
|
|
setTimeout(() => {
|
|
console.log("setTimeout 2");
|
|
});
|
|
setTimeout(() => {
|
|
console.log("setTimeout 3");
|
|
}, 100);
|