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

Function update

lib/internal/promise_hooks.js:74–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74function update() {
75 const init = maybeFastPath(hooks.init, initAll);
76 const before = maybeFastPath(hooks.before, beforeAll);
77 const after = maybeFastPath(hooks.after, afterAll);
78 const settled = maybeFastPath(hooks.settled, settledAll);
79 setPromiseHooks(init, before, after, settled);
80}
81
82function stop(list, hook) {
83 const index = ArrayPrototypeIndexOf(list, hook);

Callers 2

stopFunction · 0.70
makeUseHookFunction · 0.70

Calls 1

maybeFastPathFunction · 0.85

Tested by

no test coverage detected