From 2b12e382af78ced3413da4a692bca3801b0b070e Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 12 Sep 2024 13:45:04 +1000 Subject: [PATCH] chore: cleanup `IS_DENO_2` constant (#5945) --- internal/_is_deno_2.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/_is_deno_2.ts b/internal/_is_deno_2.ts index bb43513da..e392e990f 100644 --- a/internal/_is_deno_2.ts +++ b/internal/_is_deno_2.ts @@ -1,4 +1,3 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. // TODO(iuioiua): Remove this file when Deno 2 is released. -// deno-lint-ignore no-explicit-any -export const IS_DENO_2 = (globalThis as any).window === undefined; +export const IS_DENO_2 = Deno.version.deno.startsWith("2.");