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

Method exit

lib/internal/async_local_storage/async_hooks.js:126–136  ·  view source on GitHub ↗
(callback, ...args)

Source from the content-addressed store, hash-verified

124 }
125
126 exit(callback, ...args) {
127 if (!this.enabled) {
128 return ReflectApply(callback, null, args);
129 }
130 this.disable();
131 try {
132 return ReflectApply(callback, null, args);
133 } finally {
134 this._enable();
135 }
136 }
137
138 getStore() {
139 if (this.enabled) {

Callers 15

afterFunction · 0.45
topLevelDomainCallbackFunction · 0.45
domain.jsFile · 0.45
interceptedFunction · 0.45
boundFunction · 0.45
fatalErrorFunction · 0.45
writeInspectUsageAndExitFunction · 0.45
runProbeModeFunction · 0.45
exitCodeZeroMethod · 0.45
runMethod · 0.45
parseInteractiveArgsFunction · 0.45
handleUnexpectedErrorFunction · 0.45

Calls 2

disableMethod · 0.95
_enableMethod · 0.95

Tested by

no test coverage detected