Skip to content

Commit 8dd895e

Browse files
niyashiyastargos
authored andcommittedNov 11, 2023
test: replace forEach with for..of in test-process-env
PR-URL: #49825 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 81886c6 commit 8dd895e

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)