(e)
| 160 | |
| 161 | // Used to fatally abort the process if a callback throws. |
| 162 | function fatalError(e) { |
| 163 | if (typeof e?.stack === 'string') { |
| 164 | process._rawDebug(e.stack); |
| 165 | } else { |
| 166 | const o = inspectExceptionValue(e); |
| 167 | ErrorCaptureStackTrace(o, fatalError); |
| 168 | process._rawDebug(o.stack); |
| 169 | } |
| 170 | |
| 171 | const { getOptionValue } = require('internal/options'); |
| 172 | if (getOptionValue('--abort-on-uncaught-exception')) { |
| 173 | process.abort(); |
| 174 | } |
| 175 | process.exit(kGenericUserError); |
| 176 | } |
| 177 | |
| 178 | function lookupPublicResource(resource) { |
| 179 | if (typeof resource !== 'object' || resource === null) return resource; |
no test coverage detected
searching dependent graphs…