node/lib/internal/process
Gerhard Stöbich 32cd18e37f
async_hooks: enabledHooksExist shall return if hooks are enabled
Correct the implementaton of enabledHooksExist to return true if
there are enabled hooks.

Adapt callsites which used getHooksArrays() as workaround.

PR-URL: https://github.com/nodejs/node/pull/61054
Fixes: https://github.com/nodejs/node/issues/61019
Refs: https://github.com/nodejs/node/pull/59873
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
2026-01-20 14:34:30 +01:00
..
execution.js module: mark type stripping as stable 2025-11-10 13:38:34 +01:00
finalization.js lib: fix typos 2024-09-25 14:35:18 +00:00
per_thread.js lib: prefer call() over apply() if argument list is not array 2026-01-13 10:04:20 -03:00
permission.js src,permission: add --allow-inspector ability 2025-09-11 20:10:02 +00:00
pre_execution.js doc,src,lib: clarify experimental status of Web Storage support 2025-11-16 20:47:29 +01:00
promises.js process: fix wrong asyncContext under unhandled-rejections=strict 2025-10-04 02:12:19 +00:00
report.js src: add cli option to preserve env vars on dr 2024-11-08 17:49:43 +00:00
signal.js errors: improve hideStackFrames 2023-11-11 16:25:08 +00:00
task_queues.js async_hooks: enabledHooksExist shall return if hooks are enabled 2026-01-20 14:34:30 +01:00
warning.js lib: prefer logical assignment 2024-10-09 06:42:16 +00:00
worker_thread_only.js lib: enforce ASCII order in error code imports 2024-04-23 17:05:38 +00:00