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

Function onexit

test/async-hooks/test-tcpwrap.js:150–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148process.on('exit', onexit);
149
150function onexit() {
151 hooks.disable();
152 hooks.sanityCheck([ 'TCPWRAP', 'TCPSERVERWRAP', 'TCPCONNECTWRAP' ]);
153
154 checkInvocations(tcpserver, { init: 1, before: 1, after: 1, destroy: 1 },
155 'tcpserver when process exits');
156 checkInvocations(
157 tcp1, { init: 1, before: 2, after: 2, destroy: 1 },
158 'tcp1 when process exits');
159 checkInvocations(
160 tcp2, { init: 1, before: 2, after: 2, destroy: 1 },
161 'tcp2 when process exits');
162 checkInvocations(
163 tcpconnect, { init: 1, before: 1, after: 1, destroy: 1 },
164 'tcpconnect when process exits');
165}

Callers

nothing calls this directly

Calls 2

sanityCheckMethod · 0.80
disableMethod · 0.45

Tested by

no test coverage detected