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:
Rich Trott 2018-12-18 16:05:06 -08:00
parent 13ae5385ae
commit ae73b73eeb

View File

@ -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();