diff options
author | cjihrig <cjihrig@gmail.com> | 2019-03-27 13:21:25 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-03-29 18:57:09 -0400 |
commit | 61e4d89098e63c1dad0b2de7beeed1277abf5af3 (patch) | |
tree | 2e18a8d5eb2401bfd97d8123245518ebd178d143 /lib/dns.js | |
parent | aa2ac1981a7548ce642ddf3f3fb54e7b6b1cb228 (diff) | |
download | node-new-61e4d89098e63c1dad0b2de7beeed1277abf5af3.tar.gz |
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>
Diffstat (limited to 'lib/dns.js')
-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 be52d545a0..df19807d60 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -316,7 +316,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'); |