Skip to content

Commit

Permalink
test: replace forEach to for at test-webcrypto-sign-verify-ecdsa.js
Browse files Browse the repository at this point in the history
PR-URL: nodejs#50795
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
StiffWriter00 authored and martenrichter committed Nov 26, 2023
1 parent 3324200 commit b8b8044
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/parallel/test-webcrypto-sign-verify-ecdsa.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());

0 comments on commit b8b8044

Please sign in to comment.