test: adjust windows failed alloc test to V8 6.2
PR-URL: https://github.com/nodejs/node/pull/14730 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
parent
dc1996dd1f
commit
fca7e49e44
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user