Skip to content

Commit fce8fba

Browse files
authored
test: replace forEach with for..of in test-process-env
PR-URL: #49825 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 2449247 commit fce8fba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-process-env-ignore-getter-setter.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ assert.throws(
4040

4141
const attributes = ['configurable', 'writable', 'enumerable'];
4242

43-
attributes.forEach((attribute) => {
43+
for (const attribute of attributes) {
4444
assert.throws(
4545
() => {
4646
Object.defineProperty(process.env, 'goo', {
@@ -55,7 +55,7 @@ attributes.forEach((attribute) => {
5555
' and enumerable data descriptor'
5656
}
5757
);
58-
});
58+
}
5959

6060
assert.strictEqual(process.env.goo, undefined);
6161
Object.defineProperty(process.env, 'goo', {

0 commit comments

Comments
 (0)