summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-12-18 16:05:06 -0800
committerRich Trott <rtrott@gmail.com>2018-12-25 20:14:14 -0800
commitae73b73eeb99101188c860cce488ccc085b2f268 (patch)
tree0d79290a0bc411241933e8bab77a1d5824dccf2f /test
parent13ae5385ae010f0511927763fe28919ad44941f0 (diff)
downloadandroid-node-v8-ae73b73eeb99101188c860cce488ccc085b2f268.tar.gz
android-node-v8-ae73b73eeb99101188c860cce488ccc085b2f268.tar.bz2
android-node-v8-ae73b73eeb99101188c860cce488ccc085b2f268.zip
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>
Diffstat (limited to 'test')
-rw-r--r--test/es-module/test-esm-namespace.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/es-module/test-esm-namespace.mjs b/test/es-module/test-esm-namespace.mjs
index dcd159f6c8..da1286d0f4 100644
--- a/test/es-module/test-esm-namespace.mjs
+++ b/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();