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

Function decorateErrorStack

lib/internal/util.js:228–238  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

226}
227
228function decorateErrorStack(err) {
229 if (!(isError(err) && err.stack) || err[decorated_private_symbol])
230 return;
231
232 const arrow = err[arrow_message_private_symbol];
233
234 if (arrow) {
235 err.stack = arrow + err.stack;
236 err[decorated_private_symbol] = true;
237 }
238}
239
240function assertCrypto() {
241 if (noCrypto)

Callers 4

defaultEvalMethod · 0.85
_handleErrorMethod · 0.85
#asyncInstantiateMethod · 0.85

Calls 1

isErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…