Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
34
function
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
getError
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected