Sitelet https://github.com/nodejs/node/pull/49825/commits/6f5ed6984ae2d58122903af9ffbe482acc758147
Skip to content
Merged
Changes from 1 commit
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
Next Next commit
test: replace forEach with for..of in test-process-env
  • Loading branch information
niyashiyas committed Sep 30, 2023
commit 6f5ed6984ae2d58122903af9ffbe482acc758147
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) {
Comment thread
lpinca marked this conversation as resolved.
Outdated
assert.throws(
() => {
Object.defineProperty(process.env, 'goo', {
Expand All @@ -55,7 +55,7 @@ attributes.forEach((attribute) => {
' and enumerable data descriptor'
}
);
});
};
Comment thread
tniessen marked this conversation as resolved.
Outdated

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