MCPcopy Index your code
hub / github.com/nodejs/node / getHookArrays

Function getHookArrays

lib/internal/async_hooks.js:275–285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273// Manage Active Hooks //
274
275function getHookArrays() {
276 if (active_hooks.call_depth === 0)
277 return [active_hooks.array, async_hook_fields];
278 // If this hook is being enabled while in the middle of processing the array
279 // of currently active hooks then duplicate the current set of active hooks
280 // and store this there. This shouldn't fire until the next time hooks are
281 // processed.
282 if (active_hooks.tmp_array === null)
283 storeActiveHooks();
284 return [active_hooks.tmp_array, active_hooks.tmp_fields];
285}
286
287
288function storeActiveHooks() {

Callers 2

enableMethod · 0.85
disableMethod · 0.85

Calls 1

storeActiveHooksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…