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

Function updateExceptionCapture

lib/domain.js:158–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156useDomainTrampoline(topLevelDomainCallback);
157
158function updateExceptionCapture() {
159 if (ArrayPrototypeEvery(stack,
160 (domain) => domain.listenerCount('error') === 0)) {
161 setUncaughtExceptionCaptureCallback(null);
162 } else {
163 setUncaughtExceptionCaptureCallback(null);
164 setUncaughtExceptionCaptureCallback((er) => {
165 return process.domain._errorHandler(er);
166 });
167 }
168}
169
170
171process.on('newListener', (name, listener) => {

Callers 2

domain.jsFile · 0.85

Calls 2

listenerCountMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…