deno
2c76f459 - feat: use Node.js timers by default (#33118)

Commit
160 days ago
feat: use Node.js timers by default (#33118) ## Summary - Switches global `setTimeout`/`setInterval`/`clearTimeout`/`clearInterval` to use Node.js timer APIs instead of Web APIs by default - Timer IDs are now `Timeout` objects instead of numbers (Node.js `Timeout` has `[Symbol.toPrimitive]` so numeric coercion still works) - The `--unstable-node-globals` flag is no longer needed for this behavior - Updates `unrefTimer`/`refTimer` in `ext/web/02_timers.js` to handle both numeric IDs and Timeout objects Re-land of https://github.com/denoland/deno/commit/7ada8d6589de7e237b7af42dd666105a4386f206 --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Parents
Loading