1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 06:44:45 -05:00
denoland-deno/tests/specs/run/node_globals_hints/dirname.out
Bartek Iwańczuk 484f8ca9c3
fix: provide hints in terminal errors for Node.js globals (#26610)
Add info/hint for terminal errors related to Node.js globals:
- __filename
- __dirname
- Buffer
- global
- setImmediate
- clearImmediate

Closes https://github.com/denoland/deno/issues/17494
2024-10-29 00:55:51 +01:00

7 lines
218 B
Text

error: Uncaught (in promise) ReferenceError: __dirname is not defined
__dirname;
^
at [WILDCARD]dirname.js:1:1
info: __dirname global is not available in ES modules.
hint: Use import.meta.dirname instead.