★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/5f72f393f5Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
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: #25117
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and MylesBorins committed May 16, 2019
1 parent b980fa3 commit 5f72f393f5510c99d2754ac24630f3bd44c4cd10
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/es-module/test-esm-namespace.mjs
@@ -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();

0 comments on commit 5f72f39

Please sign in to comment.