From 9e6047182748223ab7bc5915635118e84cbd5582 Mon Sep 17 00:00:00 2001 From: RBrNx Date: Tue, 7 Nov 2023 14:56:36 +0000 Subject: [PATCH 1/2] test: replace forEach with for of --- test/parallel/test-webcrypto-sign-verify-hmac.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-webcrypto-sign-verify-hmac.js b/test/parallel/test-webcrypto-sign-verify-hmac.js index 00b742dbfea5d1..72cf81bb0d61c2 100644 --- a/test/parallel/test-webcrypto-sign-verify-hmac.js +++ b/test/parallel/test-webcrypto-sign-verify-hmac.js @@ -172,10 +172,10 @@ async function testSign({ hash, (async function() { const variations = []; - vectors.forEach((vector) => { + for(const vector of vectors){ variations.push(testVerify(vector)); variations.push(testSign(vector)); - }); + } await Promise.all(variations); })().then(common.mustCall()); From 0b856fffd6ddc4ae005d670fa38ef376d3d950b6 Mon Sep 17 00:00:00 2001 From: RBrNx Date: Tue, 7 Nov 2023 15:07:08 +0000 Subject: [PATCH 2/2] fixup! test: replace forEach with for of --- test/parallel/test-webcrypto-sign-verify-hmac.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-webcrypto-sign-verify-hmac.js b/test/parallel/test-webcrypto-sign-verify-hmac.js index 72cf81bb0d61c2..5c2d8e6cd770ff 100644 --- a/test/parallel/test-webcrypto-sign-verify-hmac.js +++ b/test/parallel/test-webcrypto-sign-verify-hmac.js @@ -172,7 +172,7 @@ async function testSign({ hash, (async function() { const variations = []; - for(const vector of vectors){ + for (const vector of vectors) { variations.push(testVerify(vector)); variations.push(testSign(vector)); }