Skip to content

Commit 9cedaa6

Browse files
cricciardirichardlau
authored andcommitted
test: replace forEach with for-of in test-webcrypto-export-import-ec
PR-URL: #51249 Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 7f301e0 commit 9cedaa6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/parallel/test-webcrypto-export-import-ec.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -363,16 +363,16 @@ async function testImportRaw({ name, publicUsages }, namedCurve) {
363363

364364
(async function() {
365365
const tests = [];
366-
testVectors.forEach((vector) => {
367-
curves.forEach((namedCurve) => {
368-
[true, false].forEach((extractable) => {
366+
for (const vector of testVectors) {
367+
for (const namedCurve of curves) {
368+
for (const extractable of [true, false]) {
369369
tests.push(testImportSpki(vector, namedCurve, extractable));
370370
tests.push(testImportPkcs8(vector, namedCurve, extractable));
371371
tests.push(testImportJwk(vector, namedCurve, extractable));
372-
});
372+
}
373373
tests.push(testImportRaw(vector, namedCurve));
374-
});
375-
});
374+
}
375+
}
376376

377377
await Promise.all(tests);
378378
})().then(common.mustCall());

0 commit comments

Comments
 (0)