mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
ef3e4a8f74
This commit adds better handling for terminal errors when `window` global is used. This global is removed in Deno 2, and while we have lints to help with that, an information and hints are helpful to guide users to working code. Ref https://github.com/denoland/deno/issues/25797
7 lines
243 B
Text
7 lines
243 B
Text
error: Uncaught (in promise) ReferenceError: window is not defined
|
|
"TextEncoder" in window;
|
|
^
|
|
at [WILDCARD]window1.js:1:18
|
|
|
|
info: window global is not available in Deno 2.
|
|
hint: Replace `window` with `globalThis`.
|