Skip to content

Commit 9f5860f

Browse files
StiffWriter00UlisesGascon
authored andcommitted
test: replace forEach to for at test-webcrypto-sign-verify-ecdsa.js
PR-URL: #50795 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent e873f1b commit 9f5860f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/parallel/test-webcrypto-sign-verify-ecdsa.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,11 @@ async function testSign({ name,
227227
(async function() {
228228
const variations = [];
229229

230-
vectors.forEach((vector) => {
230+
for (let i = 0; i < vectors.length; ++i) {
231+
const vector = vectors[i];
231232
variations.push(testVerify(vector));
232233
variations.push(testSign(vector));
233-
});
234+
}
234235

235236
await Promise.all(variations);
236237
})().then(common.mustCall());

0 commit comments

Comments
 (0)