()
| 244 | } |
| 245 | |
| 246 | function isErrorStackTraceLimitWritable() { |
| 247 | // Do no touch Error.stackTraceLimit as V8 would attempt to install |
| 248 | // it again during deserialization. |
| 249 | if (require('internal/v8/startup_snapshot').namespace.isBuildingSnapshot()) { |
| 250 | return false; |
| 251 | } |
| 252 | |
| 253 | const desc = ObjectGetOwnPropertyDescriptor(Error, 'stackTraceLimit'); |
| 254 | if (desc === undefined) { |
| 255 | return ObjectIsExtensible(Error); |
| 256 | } |
| 257 | |
| 258 | return ObjectPrototypeHasOwnProperty(desc, 'writable') ? |
| 259 | desc.writable : |
| 260 | desc.set !== undefined; |
| 261 | } |
| 262 | |
| 263 | function inspectWithNoCustomRetry(obj, options) { |
| 264 | const utilInspect = lazyInternalUtilInspect(); |
no test coverage detected
searching dependent graphs…