mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -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
213 B
Text
7 lines
213 B
Text
error: Uncaught (in promise) ReferenceError: window is not defined
|
|
window.atob;
|
|
^
|
|
at [WILDCARD]window2.js:1:1
|
|
|
|
info: window global is not available in Deno 2.
|
|
hint: Replace `window` with `globalThis`.
|