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>
This commit is contained in:
cjihrig 2019-03-27 13:21:25 -04:00
parent aa2ac1981a
commit 61e4d89098
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5

View File

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