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

Function onexit

test/async-hooks/test-fseventwrap.js:30–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28process.on('exit', onexit);
29
30function onexit() {
31 hooks.disable();
32 hooks.sanityCheck('FSEVENTWRAP');
33
34 const as = hooks.activitiesOfTypes('FSEVENTWRAP');
35 assert.strictEqual(as.length, 1);
36
37 const a = as[0];
38 assert.strictEqual(a.type, 'FSEVENTWRAP');
39 assert.strictEqual(typeof a.uid, 'number');
40 assert.strictEqual(a.triggerAsyncId, 1);
41 checkInvocations(a, { init: 1, destroy: 1 }, 'when process exits');
42}

Callers

nothing calls this directly

Calls 3

sanityCheckMethod · 0.80
activitiesOfTypesMethod · 0.80
disableMethod · 0.45

Tested by

no test coverage detected