Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fce8fba

Browse filesBrowse files
authored
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 2449247 commit fce8fba
Copy full SHA for fce8fba

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-process-env-ignore-getter-setter.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.