mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -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.
5 lines
178 B
TypeScript
5 lines
178 B
TypeScript
globalThis.onload = async () => {
|
|
console.log(performance.now() % 2 !== 0);
|
|
await Deno.permissions.revoke({ name: "hrtime" });
|
|
console.log(performance.now() % 2 === 0);
|
|
};
|