MCPcopy Create free account
hub / github.com/nodejs/node / onexit

Function onexit

test/async-hooks/test-getnameinforeqwrap.js:37–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35process.on('exit', onexit);
36
37function onexit() {
38 hooks.disable();
39 hooks.sanityCheck('GETNAMEINFOREQWRAP');
40
41 const as = hooks.activitiesOfTypes('GETNAMEINFOREQWRAP');
42 const a = as[0];
43 checkInvocations(a, { init: 1, before: 1, after: 1, destroy: 1 },
44 'when process exits');
45}

Callers

nothing calls this directly

Calls 3

sanityCheckMethod · 0.80
activitiesOfTypesMethod · 0.80
disableMethod · 0.45

Tested by

no test coverage detected