mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
b72f0be27c
Closes https://github.com/denoland/deno/issues/22315 ``` ~> DENO_FUTURE=1 target/debug/deno > globalThis.window undefined ```
3 lines
85 B
TypeScript
3 lines
85 B
TypeScript
if (typeof window !== "undefined") {
|
|
throw new Error("Window global available");
|
|
}
|