From fcc22d31a0acfeba00e525610a1d7bd13164eae2 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 27 Mar 2019 13:21:25 -0400 Subject: [PATCH] dns: make dns.promises enumerable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/26592 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Matteo Collina Reviewed-By: Michaƫl Zasso --- lib/dns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns.js b/lib/dns.js index bcd3d5bbd90879..25afd331b0aab7 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');