From cf645d4549c47f00a42c2fd3570a6c7dca178c92 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 5 Oct 2026 19:32:05 -0400 Subject: [PATCH] test: changed forEach to for of loop --- test/parallel/test-whatwg-url-custom-tostringtag.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-whatwg-url-custom-tostringtag.js b/test/parallel/test-whatwg-url-custom-tostringtag.js index 54e5850a8f07..9ce00b038c6f 100644 --- a/test/parallel/test-whatwg-url-custom-tostringtag.js +++ b/test/parallel/test-whatwg-url-custom-tostringtag.js @@ -23,10 +23,10 @@ const test = [ [Object.getPrototypeOf(spIterator), 'URLSearchParams Iterator'], ]; -test.forEach(([obj, expected]) => { +for (const [obj, expected] of test) { assert.strictEqual(obj[Symbol.toStringTag], expected, `${obj[Symbol.toStringTag]} !== ${expected}`); const str = toString.call(obj); assert.strictEqual(str, `[object ${expected}]`, `${str} !== [object ${expected}]`); -}); +}