node/test/addons
Matteo Collina 2c4356cedf
domain: port to AsyncLocalStorage
Port the domain module from createHook (async_hooks) to
AsyncLocalStorage using the AsyncContextFrame-based implementation.

Key changes:
- Use AsyncLocalStorage for domain context propagation instead of
  async_hooks.createHook()
- Lazy initialization that triggers AsyncContextFrame prototype swap
  on first domain use
- Use enterWith instead of ALS.run() so domain context is NOT
  automatically restored on exception - this matches the original
  domain.run() behavior where exit() only runs on success
- Add ERR_ASYNC_RESOURCE_DOMAIN_REMOVED error for AsyncResource.domain
- Update DEP0097 to End-of-Life status
- Remove tests that relied on the removed MakeCallback domain property

The domain module now uses the AsyncContextFrame version of
AsyncLocalStorage directly for proper context propagation across
async boundaries.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
PR-URL: https://github.com/nodejs/node/pull/61095
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
2026-06-21 19:42:03 +00:00
..
async-cleanup-hook doc,src,test: replace use of deprecated GetIsolate 2025-10-04 18:48:35 +02:00
async-hello-world
async-hooks-id
async-resource test: add type tags to uses of v8::External 2026-04-24 18:01:36 +02:00
buffer-free-callback
callback-scope test: enforce better never-settling-promise detection 2025-12-10 23:55:36 +00:00
cppgc-object test: prefer major GC in cppgc-object teardown 2025-11-24 16:20:18 +00:00
dlopen-ping-pong
errno-exception
esm
esm-export-default test,win: split addon tests 2025-10-04 18:48:46 +02:00
esm-export-primitive test,win: split addon tests 2025-10-04 18:48:46 +02:00
force-context-aware
heap-profiler doc,src,test: replace use of deprecated GetIsolate 2025-10-04 18:48:35 +02:00
hello-world test,win: split addon tests 2025-10-04 18:48:46 +02:00
hello-world-2 test,win: split addon tests 2025-10-04 18:48:46 +02:00
hello-world-function-export
load-long-path
make-callback
make-callback-recurse domain: port to AsyncLocalStorage 2026-06-21 19:42:03 +00:00
new-context-inspector src: expose node::RegisterContext to make a node managed context 2026-05-21 13:50:23 +00:00
new-isolate-addon
new-target doc,src,test: replace use of deprecated GetIsolate 2025-10-04 18:48:35 +02:00
no-addons test: ensure assertions are reachable in test/addons 2025-10-25 20:44:28 +02:00
node-module-version
non-node-context
not-a-binding
null-buffer-neuter test: ensure assertions are reachable in test/addons 2025-10-25 20:44:28 +02:00
openssl-binding test: update test/addons/openssl-binding for OpenSSL 4.0 2026-04-20 14:04:38 +00:00
openssl-client-cert-engine crypto,https,tls: runtime-deprecate OpenSSL engine-based APIs (DEP0183) 2026-06-19 18:03:51 +02:00
openssl-get-ssl-ctx test: update tls/crypto behaviour expectations when using BoringSSL 2026-05-08 19:27:18 +00:00
openssl-key-engine crypto,https,tls: runtime-deprecate OpenSSL engine-based APIs (DEP0183) 2026-06-19 18:03:51 +02:00
openssl-providers test: forbid use of named imports for fixtures 2026-01-01 23:48:26 +00:00
openssl-test-engine deps: update OpenSSL build config to support compression 2026-06-19 16:07:00 +02:00
parse-encoding
register-signal-handler
repl-domain-abort
report-api
report-fatalerror test: expand linting rules around assert w literal messages 2025-07-23 16:28:06 +00:00
request-interrupt
stringbytes-external-exceed-max
symlinked-module test: ensure assertions are reachable in test/addons 2025-10-25 20:44:28 +02:00
uv-handle-leak
uv-thread-name src: use node- prefix on thread names 2026-01-13 16:57:11 +00:00
worker-addon src: keep global list of addon-provided cleanup hooks 2026-06-20 18:16:02 +02:00
worker-addon-exit test: add regression test for using ObjectWrap in worker 2026-06-05 12:53:44 +00:00
worker-buffer-callback doc,src,test: replace use of deprecated GetIsolate 2025-10-04 18:48:35 +02:00
zlib-binding doc,src,test: replace use of deprecated GetIsolate 2025-10-04 18:48:35 +02:00
.gitignore
addons.status crypto: add crypto::GetSSLCtx API for addon access to OpenSSL contexts 2026-03-23 11:27:22 +00:00
common.gypi
testcfg.py