From fca7e49e4467077aebac359da016a889be77e4c5 Mon Sep 17 00:00:00 2001 From: Bartosz Sosnowski Date: Wed, 13 Sep 2017 14:43:43 +0200 Subject: [PATCH] test: adjust windows failed alloc test to V8 6.2 PR-URL: https://github.com/nodejs/node/pull/14730 Reviewed-By: Ben Noordhuis Reviewed-By: Ali Ijaz Sheikh Reviewed-By: Colin Ihrig Reviewed-By: Matteo Collina --- test/parallel/test-windows-failed-heap-allocation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-windows-failed-heap-allocation.js b/test/parallel/test-windows-failed-heap-allocation.js index 465dcae2b6a9cb..e03c9ee006eabd 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); }