deno/runtime/js
Bartek Iwańczuk 7ada8d6589
feat: use Node.js timers by default (#31272)
This commit changes global `setTimeout` and `setInterval` APIs (along
their `clear*` counterparts) to use Node.js APIs instead of the Web
APIs.

For real world usage we expect no difference in code and behavior,
unless user relies on following checks:
```
const id = setTimeout(...);
if (typeof id === "number") {
  // ...
}
```
In which case the conditional should be changed to `if (id)`
2025-11-13 20:09:41 +01:00
..
01_errors.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
01_version.ts chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
06_util.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
10_permissions.js fix: support Deno.permissions.query({name:"import"}) (#29610) 2025-06-26 22:13:56 +02:00
11_workers.js refactor: merge deno_console into deno_web (#31185) 2025-11-05 08:46:48 +01:00
40_fs_events.js chore: use SymbolAsyncDispose and SymbolDispose primordials (#30828) 2025-09-24 13:23:35 +02:00
40_tty.js chore: Happy New Year 2025 (#27509) 2024-12-31 19:12:39 +00:00
41_prompt.js fix: remove unnecessary whitespace in prompt function (#28868) 2025-04-16 17:49:06 +00:00
90_deno_ns.js refactor: merge deno_console into deno_web (#31185) 2025-11-05 08:46:48 +01:00
98_global_scope_shared.js feat: use Node.js timers by default (#31272) 2025-11-13 20:09:41 +01:00
98_global_scope_window.js refactor: merge deno_console into deno_web (#31185) 2025-11-05 08:46:48 +01:00
98_global_scope_worker.js refactor: merge deno_console into deno_web (#31185) 2025-11-05 08:46:48 +01:00
99_main.js refactor: merge deno_console into deno_web (#31185) 2025-11-05 08:46:48 +01:00
README.md chore: fix outdated note in runtime/js/README.md (#23673) 2024-05-05 01:30:53 +00:00

Runtime JavaScript Code

This directory contains Deno runtime code written in plain JavaScript.

Each file is an ES module and is prefixed with a number, telling in which order scripts should be loaded into V8 isolate.

Deno Web APIs

This directory facilities Web APIs that are available in Deno.

Please note, that some implementations might not be completely aligned with specification.

Some Web APIs are using ops under the hood, eg. console, performance.

Implemented Web APIs