mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
57541b48ba
Fixes several tests blocking https://github.com/denoland/deno/pull/25213 by replacing `window` global that is gone in Deno 2 with `globalThis`. Also adjusted a few tests using deprecated `rid` field.
19 lines
429 B
TypeScript
19 lines
429 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");
|
|
});
|
|
globalThis.close();
|
|
console.log("sync 2");
|
|
setTimeout(() => {
|
|
console.log("setTimeout 2");
|
|
});
|
|
setTimeout(() => {
|
|
console.log("setTimeout 3");
|
|
}, 100);
|