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:
Bartosz Sosnowski 2017-09-13 14:43:43 +02:00 committed by Anna Henningsen
parent dc1996dd1f
commit fca7e49e44
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9

View File

@ -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);
}