From 0ad36c2230c7168b362c3a811e9bfc6c1e728ce6 Mon Sep 17 00:00:00 2001 From: Alessandro Di Nisio <95277049+StiffWriter00@users.noreply.github.com> Date: Fri, 24 Nov 2023 14:52:32 +0100 Subject: [PATCH] test: replace forEach to for at test-webcrypto-sign-verify-ecdsa.js PR-URL: https://github.com/nodejs/node/pull/50795 Reviewed-By: James M Snell Reviewed-By: Marco Ippolito Reviewed-By: Luigi Pinca --- test/parallel/test-webcrypto-sign-verify-ecdsa.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-webcrypto-sign-verify-ecdsa.js b/test/parallel/test-webcrypto-sign-verify-ecdsa.js index 072485cca59f7f..8fbf572ef5c64e 100644 --- a/test/parallel/test-webcrypto-sign-verify-ecdsa.js +++ b/test/parallel/test-webcrypto-sign-verify-ecdsa.js @@ -227,10 +227,11 @@ async function testSign({ name, (async function() { const variations = []; - vectors.forEach((vector) => { + for (let i = 0; i < vectors.length; ++i) { + const vector = vectors[i]; variations.push(testVerify(vector)); variations.push(testSign(vector)); - }); + } await Promise.all(variations); })().then(common.mustCall());