Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ fn
Function
fn
test/parallel/test-windows-failed-heap-allocation.js:13–13 ·
view source on GitHub ↗
(nM)
Source
from the content-addressed store, hash-verified
11
if
(process.argv[2] ===
'heapBomb'
) {
12
// Heap bomb, imitates a memory leak quickly
13
const
fn = (nM) => [...Array(nM)].map((i) => fn(nM * 2));
14
fn(2);
15
}
16
Callers
1
test-windows-failed-heap-allocation.js
File · 0.70
Calls
2
Array
Function · 0.85
map
Method · 0.65
Tested by
no test coverage detected