()
| 156 | useDomainTrampoline(topLevelDomainCallback); |
| 157 | |
| 158 | function 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 | |
| 171 | process.on('newListener', (name, listener) => { |
no test coverage detected
searching dependent graphs…