summaryrefslogtreecommitdiff
path: root/tests/specs/run/node_globals_hints/global.out
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-10-28 23:55:51 +0000
committerGitHub <noreply@github.com>2024-10-29 00:55:51 +0100
commit484f8ca9c30909914eb3348b2df10d44e2753248 (patch)
tree352f3e7c7e0e6d3354438d94e77fca1abc911fe6 /tests/specs/run/node_globals_hints/global.out
parent0e641632c38383a1d67aa610867496f64ae423ca (diff)
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
Diffstat (limited to 'tests/specs/run/node_globals_hints/global.out')
-rw-r--r--tests/specs/run/node_globals_hints/global.out7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/specs/run/node_globals_hints/global.out b/tests/specs/run/node_globals_hints/global.out
new file mode 100644
index 000000000..e090d32e2
--- /dev/null
+++ b/tests/specs/run/node_globals_hints/global.out
@@ -0,0 +1,7 @@
+error: Uncaught (in promise) ReferenceError: global is not defined
+global;
+^
+ at [WILDCARD]global.js:1:1
+
+ info: global is not available in the global scope in Deno.
+ hint: Use globalThis instead, or assign globalThis.global = globalThis.