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

Function onexit

test/async-hooks/test-fsreqcallback-readFile.js:46–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44process.on('exit', onexit);
45
46function onexit() {
47 hooks.disable();
48 hooks.sanityCheck('FSREQCALLBACK');
49 const as = hooks.activitiesOfTypes('FSREQCALLBACK');
50 const a = as.pop();
51 checkInvocations(a, { init: 1, before: 1, after: 1, destroy: 1 },
52 'when process exits');
53}

Callers

nothing calls this directly

Calls 4

sanityCheckMethod · 0.80
activitiesOfTypesMethod · 0.80
popMethod · 0.80
disableMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…