diff --git a/test/parallel/test-process-env-ignore-getter-setter.js b/test/parallel/test-process-env-ignore-getter-setter.js index 677960570a0bc1..e17e3752856e81 100644 --- a/test/parallel/test-process-env-ignore-getter-setter.js +++ b/test/parallel/test-process-env-ignore-getter-setter.js @@ -40,7 +40,7 @@ assert.throws( const attributes = ['configurable', 'writable', 'enumerable']; -attributes.forEach((attribute) => { +for (const attribute of attributes) { assert.throws( () => { Object.defineProperty(process.env, 'goo', { @@ -55,7 +55,7 @@ attributes.forEach((attribute) => { ' and enumerable data descriptor' } ); -}); +} assert.strictEqual(process.env.goo, undefined); Object.defineProperty(process.env, 'goo', {