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

Function emitHookFactory

lib/internal/async_hooks.js:262–271  ·  view source on GitHub ↗
(symbol, name)

Source from the content-addressed store, hash-verified

260}
261
262function emitHookFactory(symbol, name) {
263 const fn = emitHook.bind(undefined, symbol);
264
265 // Set the name property of the function as it looks good in the stack trace.
266 ObjectDefineProperty(fn, 'name', {
267 __proto__: null,
268 value: name,
269 });
270 return fn;
271}
272
273// Manage Active Hooks //
274

Callers 1

async_hooks.jsFile · 0.85

Calls 1

bindMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…