mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -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");
|
|
}
|