| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,8 @@ assert.ok(binding.os.errno); | |||
| 14 | 14 | assert.ok(binding.fs); | |
| 15 | 15 | assert.ok(binding.crypto); | |
| 16 | 16 | ||
| 17 | - ['os', 'fs', 'crypto'].forEach((l) => { | ||
| 17 | + const moduleNames = ['os', 'fs', 'crypto']; | ||
| 18 | + for (const l of moduleNames) { | ||
| 18 | 19 | for (const k of Object.keys(binding[l])) { | |
| 19 | 20 | if (typeof binding[l][k] === 'object') { // errno and signals | |
| 20 | 21 | for (const j of Object.keys(binding[l][k])) { | |
@@ -25,6 +26,6 @@ assert.ok(binding.crypto); | |||
| 25 | 26 | assert.strictEqual(binding[l][k], constants[k]); | |
| 26 | 27 | } | |
| 27 | 28 | } | |
| 28 | - }); | ||
| 29 | + } | ||
| 29 | 30 | ||
| 30 | 31 | assert.ok(Object.isFrozen(constants)); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments