diff options
author | cjihrig <cjihrig@gmail.com> | 2019-03-27 20:21:25 +0300 |
---|---|---|
committer | Beth Griggs <Bethany.Griggs@uk.ibm.com> | 2019-10-18 15:51:59 +0300 |
commit | fcc22d31a0acfeba00e525610a1d7bd13164eae2 (patch) | |
tree | dac5e2e3f37d3698487c9736062eb9a6e664c49c | |
parent | fa27aac5fb0f6b7deae7a8870b394a79642b7ddc (diff) |
dns: make dns.promises enumerable
PR-URL: https://github.com/nodejs/node/pull/26592
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
-rw-r--r-- | lib/dns.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dns.js b/lib/dns.js index bcd3d5bbd90..25afd331b0a 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -313,7 +313,7 @@ bindDefaultResolver(module.exports, getDefaultResolver()); Object.defineProperties(module.exports, { promises: { configurable: true, - enumerable: false, + enumerable: true, get() { if (promises === null) { promises = require('internal/dns/promises'); |