mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -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
218 B
Text
7 lines
218 B
Text
error: Uncaught (in promise) ReferenceError: window is not defined
|
|
window.navigator;
|
|
^
|
|
at [WILDCARD]window3.js:1:1
|
|
|
|
info: window global is not available in Deno 2.
|
|
hint: Replace `window` with `globalThis`.
|