MCPcopy Create free account
hub / github.com/nodejs/node / recurse

Function recurse

test/fixtures/snapshot/mutate-error-stack-trace-limit.js:36–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34function getError(message, depth) {
35 let counter = 1;
36 function recurse() {
37 if (counter++ < depth) {
38 return recurse();
39 }
40 const error = new Error(message);
41 return error.stack;
42 }
43 return recurse();
44}

Callers 1

getErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected