mirror of
https://github.com/denoland/std.git
synced 2024-11-21 12:40:03 +00:00
chore: cleanup IS_DENO_2
constant (#5945)
This commit is contained in:
parent
6ba3810544
commit
2b12e382af
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user