diff --git a/test/parallel/test-windows-failed-heap-allocation.js b/test/parallel/test-windows-failed-heap-allocation.js index 465dcae2b6..e03c9ee006 100644 --- a/test/parallel/test-windows-failed-heap-allocation.js +++ b/test/parallel/test-windows-failed-heap-allocation.js @@ -10,7 +10,7 @@ const { exec } = require('child_process'); if (process.argv[2] === 'heapBomb') { // heap bomb, imitates a memory leak quickly - const fn = (nM) => [...Array(nM)].map((i) => fn(nM ** 2)); + const fn = (nM) => [...Array(nM)].map((i) => fn(nM * 2)); fn(2); }