1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/runtime/js
Yoshiya Hinosawa 350d9dce41
fix(ext/node): do not exit worker thread when there is pending async op (#27378)
This change fixes the premature exit of worker threads when there are still
remaining pending ops.

This change reuses the idea of #22647 (unref'ing `op_worker_recv_message` in
worker threads if closeOnIdle specified) and uses
`web_worker.has_message_event_listener` check in the opposite way as
#22944. (Now we continue the worker when `has_message_event_listener` is
true instead of stopping it when `has_message_event_listener` is false.

closes #23061
closes #26154
2024-12-19 17:39:20 +09:00
..
01_errors.js feat(cli): use NotCapable error for permission errors (#25431) 2024-09-10 11:12:24 -07:00
01_version.ts refactor: use core.ensureFastOps() (#21888) 2024-01-10 15:37:25 -07:00
06_util.js refactor: use web utils and lazy load utils from core (#22289) 2024-02-06 22:28:32 +01:00
10_permissions.js fix(unstable/worker): ensure import permissions are passed (#26101) 2024-10-10 14:01:42 +01:00
11_workers.js fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
30_os.js fix: validate integer values in Deno.exitCode setter (#24068) 2024-06-02 21:29:01 -04:00
40_fs_events.js fix: share inotify fd across watchers (#26200) 2024-10-23 09:22:58 +05:30
40_process.js fix(node): Pass NPM_PROCESS_STATE to subprocesses via temp file instead of env var (#25896) 2024-09-27 12:35:37 -07:00
40_signals.js fix(runtime): use more null proto objects (#23921) 2024-05-23 00:03:35 +02:00
40_tty.js chore(tty): soft-remove Deno.isatty() (#25410) 2024-09-04 18:12:11 +10:00
41_prompt.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
90_deno_ns.js refactor(unstable): move telemetry to own ext (#27067) 2024-11-26 11:22:18 +00:00
98_global_scope_shared.js fix: Buffer global in --unstable-node-globals (#26973) 2024-11-21 16:27:37 +00:00
98_global_scope_window.js chore: cleanup remaining internals.future code (#25624) 2024-09-16 09:28:35 +10:00
98_global_scope_worker.js fix(runtime): use more null proto objects again (#25040) 2024-09-06 12:52:59 +02:00
99_main.js fix(ext/node): do not exit worker thread when there is pending async op (#27378) 2024-12-19 17:39:20 +09: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