Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: replace forEach with for..of in test-process-env-ignore #49825

Merged
merged 3 commits into from
Oct 7, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/parallel/test-process-env-ignore-getter-setter.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ assert.throws(

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

attributes.forEach((attribute) => {
for(const attribute of attributes) {
lpinca marked this conversation as resolved.
Show resolved Hide resolved
assert.throws(
() => {
Object.defineProperty(process.env, 'goo', {
Expand All @@ -55,7 +55,7 @@ attributes.forEach((attribute) => {
' and enumerable data descriptor'
}
);
});
}

assert.strictEqual(process.env.goo, undefined);
Object.defineProperty(process.env, 'goo', {
Expand Down