There was an error while loading. Please reload this page.
1 parent bbb1226 commit 9346570Copy full SHA for 9346570
1 file changed
test/parallel/test-constants.js
@@ -14,7 +14,8 @@ assert.ok(binding.os.errno);
14
assert.ok(binding.fs);
15
assert.ok(binding.crypto);
16
17
-['os', 'fs', 'crypto'].forEach((l) => {
+const moduleNames = ['os', 'fs', 'crypto'];
18
+for (const l of moduleNames) {
19
for (const k of Object.keys(binding[l])) {
20
if (typeof binding[l][k] === 'object') { // errno and signals
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]);
27
}
28
-});
29
+}
30
31
assert.ok(Object.isFrozen(constants));
0 commit comments