| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dc1996d commit fca7e49
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ const { exec } = require('child_process'); | |||
| 10 | 10 | ||
| 11 | 11 | if (process.argv[2] === 'heapBomb') { | |
| 12 | 12 | // heap bomb, imitates a memory leak quickly | |
| 13 | - const fn = (nM) => [...Array(nM)].map((i) => fn(nM ** 2)); | ||
| 13 | + const fn = (nM) => [...Array(nM)].map((i) => fn(nM * 2)); | ||
| 14 | 14 | fn(2); | |
| 15 | 15 | } | |
| 16 | 16 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments