MCPcopy 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

11if (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

Calls 2

ArrayFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected