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

Function isErrorStackTraceLimitWritable

lib/internal/errors.js:246–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244}
245
246function 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
263function inspectWithNoCustomRetry(obj, options) {
264 const utilInspect = lazyInternalUtilInspect();

Callers 10

_errnoExceptionFunction · 0.85
_exceptionWithHostPortFunction · 0.85
defaultEvalMethod · 0.85
lazyDOMExceptionFunction · 0.85
aggregateTwoErrorsFunction · 0.85
constructorMethod · 0.85
getErrMessageFunction · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
createWarningObjectFunction · 0.85

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…