Skip to content

Commit d3c1de3

Browse files
cjihrigBethGriggs
authored andcommitted
dns: remove dns.promises experimental warning
PR-URL: #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> Signed-off-by: Beth Griggs <Bethany.Griggs@uk.ibm.com>
1 parent b62739c commit d3c1de3

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lib/dns.js

-2
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,6 @@ Object.defineProperties(module.exports, {
321321
if (promises === null) {
322322
promises = require('internal/dns/promises');
323323
promises.setServers = defaultResolverSetServers;
324-
process.emitWarning('The dns.promises API is experimental',
325-
'ExperimentalWarning');
326324
}
327325
return promises;
328326
}

test/parallel/test-dns-lookup.js

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ common.expectWarning({
2727
'internal/test/binding': [
2828
'These APIs are for internal testing only. Do not use them.'
2929
],
30-
// For dns.promises.
31-
'ExperimentalWarning': 'The dns.promises API is experimental',
3230
// For calling `dns.lookup` with falsy `hostname`.
3331
'DeprecationWarning': {
3432
DEP0118: 'The provided hostname "false" is not a valid ' +

0 commit comments

Comments
 (0)