deno/tests/specs/run/node_prefix_missing
Bartek Iwańczuk a434ac2a1e
feat(unstable): use Node.js setTimeout and setInterval (#29993)
This commit repurposes `--unstable-node-globals` flag that was
deprecated
in https://github.com/denoland/deno/pull/29887 to switch out timers
implemention that is used.

Ie. using this flag cause `setTimeout`, `setInterval`, `clearTimeout`
and `clearInterval` globals to use functions from `node:timers` 
module instead of the Web version.

This is also enabled using `DENO_COMPAT=1` env var. 

TODO:
<s>make typechecking be conditional depending on this, most likely
requires
changes in our TS fork.</s> This has been deferred until Deno 3

Towards https://github.com/denoland/deno/issues/29703

---------

Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2025-09-09 00:48:58 +02:00
..
byonm fix(node/byonm): do not accidentally resolve bare node built-ins (#25543) 2024-09-09 21:35:41 +00:00
__test__.jsonc feat(unstable): use Node.js setTimeout and setInterval (#29993) 2025-09-09 00:48:58 +02:00
config.json fix(regression): show bare-node-builtin hint when using an import map (#27632) 2025-01-11 01:39:43 +00:00
deno.json fix(regression): show bare-node-builtin hint when using an import map (#27632) 2025-01-11 01:39:43 +00:00
feature_enabled.out fix: remove warnings for bare node builtins (#29000) 2025-04-23 15:30:59 -04:00
main.ts fix(node/byonm): do not accidentally resolve bare node built-ins (#25543) 2024-09-09 21:35:41 +00:00
main.ts.out fix(regression): show bare-node-builtin hint when using an import map (#27632) 2025-01-11 01:39:43 +00:00
main_no_config.out fix(regression): show bare-node-builtin hint when using an import map (#27632) 2025-01-11 01:39:43 +00:00
node_globals.out feat(unstable): use Node.js setTimeout and setInterval (#29993) 2025-09-09 00:48:58 +02:00
node_globals.ts feat(unstable): use Node.js setTimeout and setInterval (#29993) 2025-09-09 00:48:58 +02:00
node_globals_check.out feat(unstable): use Node.js setTimeout and setInterval (#29993) 2025-09-09 00:48:58 +02:00