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

Function copyHooks

lib/internal/async_hooks.js:296–302  ·  view source on GitHub ↗
(destination, source)

Source from the content-addressed store, hash-verified

294}
295
296function copyHooks(destination, source) {
297 destination[kInit] = source[kInit];
298 destination[kBefore] = source[kBefore];
299 destination[kAfter] = source[kAfter];
300 destination[kDestroy] = source[kDestroy];
301 destination[kPromiseResolve] = source[kPromiseResolve];
302}
303
304
305// Then restore the correct hooks array in case any hooks were added/removed

Callers 2

storeActiveHooksFunction · 0.85
restoreActiveHooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…