1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 01:29:14 -05:00
denoland-deno/tests/specs/run/window/window3.out
Bartek Iwańczuk ef3e4a8f74
feat: Show hints when using window global (#25805)
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
2024-09-23 00:05:42 +02:00

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`.