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

Function emitBeforeScript

lib/internal/async_hooks.js:518–523  ·  view source on GitHub ↗
(asyncId, triggerAsyncId, resource, isPromiseHook = false)

Source from the content-addressed store, hash-verified

516
517
518function emitBeforeScript(asyncId, triggerAsyncId, resource, isPromiseHook = false) {
519 pushAsyncContext(asyncId, triggerAsyncId, resource);
520
521 if (hasHooks(kBefore))
522 emitBeforeNative(asyncId, isPromiseHook);
523}
524
525
526function emitAfterScript(asyncId) {

Callers 1

promiseBeforeHookFunction · 0.85

Calls 2

pushAsyncContextFunction · 0.85
hasHooksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…