diff --git a/test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js b/test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js index 2a8eac5f187406..a2a31af28c0c4e 100644 --- a/test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js +++ b/test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js @@ -43,7 +43,7 @@ const bad = [ }, ]; -bad.forEach((t) => { +for (const t of bad) { assert.throws( () => { new TextDecoder(t.encoding, { fatal: true }) @@ -53,4 +53,4 @@ bad.forEach((t) => { name: 'TypeError' } ); -}); +}