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

Function storeActiveHooks

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

Source from the content-addressed store, hash-verified

286
287
288function storeActiveHooks() {
289 active_hooks.tmp_array = ArrayPrototypeSlice(active_hooks.array);
290 // Don't want to make the assumption that kInit to kDestroy are indexes 0 to
291 // 4. So do this the long way.
292 active_hooks.tmp_fields = [];
293 copyHooks(active_hooks.tmp_fields, async_hook_fields);
294}
295
296function copyHooks(destination, source) {
297 destination[kInit] = source[kInit];

Callers 1

getHookArraysFunction · 0.85

Calls 1

copyHooksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…