chore: cleanup IS_DENO_2 constant (#5945)

This commit is contained in:
Asher Gomez 2024-09-12 13:45:04 +10:00 committed by GitHub
parent 6ba3810544
commit 2b12e382af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.");