1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 10:09:20 -05:00
denoland-deno/tests/specs/run/node_globals_hints/set_immediate.out
Bartek Iwańczuk 9f9eec1250
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-30 00:16:12 +01:00

7 lines
278 B
Text

error: Uncaught (in promise) ReferenceError: setImmediate is not defined
setImmediate;
^
at [WILDCARD]set_immediate.js:1:1
info: setImmediate is not available in the global scope in Deno.
hint: Import it explicitly with import { setImmediate } from "node:timers";.