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

Function restoreActiveHooks

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

Source from the content-addressed store, hash-verified

305// Then restore the correct hooks array in case any hooks were added/removed
306// during hook callback execution.
307function restoreActiveHooks() {
308 active_hooks.array = active_hooks.tmp_array;
309 copyHooks(async_hook_fields, active_hooks.tmp_fields);
310
311 active_hooks.tmp_array = null;
312 active_hooks.tmp_fields = null;
313}
314
315function trackPromise(promise, parent) {
316 if (promise[async_id_symbol]) {

Callers 2

emitInitNativeFunction · 0.85
emitHookFunction · 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…