test: refactor test-esm-namespace.mjs
Remove unused `name` argument that is different from a subsequent `name` argument in a different but nearby function. This was mildly confusing to me at first, so hopefully this change clarifies things for others reading the test. PR-URL: https://github.com/nodejs/node/pull/25117 Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
13ae5385ae
commit
ae73b73eeb
@ -6,7 +6,7 @@ import Module from 'module';
|
||||
|
||||
const keys = Object.entries(
|
||||
Object.getOwnPropertyDescriptors(new Module().require('fs')))
|
||||
.filter(([name, d]) => d.enumerable)
|
||||
.filter(([ , d]) => d.enumerable)
|
||||
.map(([name]) => name)
|
||||
.concat('default')
|
||||
.sort();
|
||||
|
Loading…
x
Reference in New Issue
Block a user