summaryrefslogtreecommitdiff
path: root/tests/testdata/run/025_hrtime.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/run/025_hrtime.ts')
-rw-r--r--tests/testdata/run/025_hrtime.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testdata/run/025_hrtime.ts b/tests/testdata/run/025_hrtime.ts
index b69d61488..7e69b0ddf 100644
--- a/tests/testdata/run/025_hrtime.ts
+++ b/tests/testdata/run/025_hrtime.ts
@@ -1,4 +1,4 @@
-window.onload = async () => {
+globalThis.onload = async () => {
console.log(performance.now() % 2 !== 0);
await Deno.permissions.revoke({ name: "hrtime" });
console.log(performance.now() % 2 === 0);