diff options
author | cjihrig <cjihrig@gmail.com> | 2018-08-23 09:28:41 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-08-30 09:08:44 -0400 |
commit | 8b0c482647004667ac9688f72264b9efca36b699 (patch) | |
tree | 7888478e95eed7b6160d46c0db23c9e891d3951b /lib/internal/dns | |
parent | 60465700ed055640e737ca3a53e16465dfec00d6 (diff) | |
download | android-node-v8-8b0c482647004667ac9688f72264b9efca36b699.tar.gz android-node-v8-8b0c482647004667ac9688f72264b9efca36b699.tar.bz2 android-node-v8-8b0c482647004667ac9688f72264b9efca36b699.zip |
dns: make process.binding('cares_wrap') internal
PR-URL: https://github.com/nodejs/node/pull/22474
Refs: https://github.com/nodejs/node/issues/22160
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'lib/internal/dns')
-rw-r--r-- | lib/internal/dns/promises.js | 3 | ||||
-rw-r--r-- | lib/internal/dns/utils.js | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/internal/dns/promises.js b/lib/internal/dns/promises.js index 9ba202e5b2..408dec712d 100644 --- a/lib/internal/dns/promises.js +++ b/lib/internal/dns/promises.js @@ -6,6 +6,7 @@ const { } = require('internal/dns/utils'); const { codes, dnsException } = require('internal/errors'); const { isIP, isIPv4, isLegalPort } = require('internal/net'); +const { internalBinding } = require('internal/bootstrap/loaders'); const { getaddrinfo, getnameinfo, @@ -13,7 +14,7 @@ const { GetAddrInfoReqWrap, GetNameInfoReqWrap, QueryReqWrap -} = process.binding('cares_wrap'); +} = internalBinding('cares_wrap'); const { ERR_INVALID_ARG_TYPE, ERR_INVALID_OPT_VALUE, diff --git a/lib/internal/dns/utils.js b/lib/internal/dns/utils.js index f6bace7528..2362f28a82 100644 --- a/lib/internal/dns/utils.js +++ b/lib/internal/dns/utils.js @@ -1,12 +1,13 @@ 'use strict'; const errors = require('internal/errors'); const { isIP } = require('internal/net'); +const { internalBinding } = require('internal/bootstrap/loaders'); const { ChannelWrap, strerror, AI_ADDRCONFIG, AI_V4MAPPED -} = process.binding('cares_wrap'); +} = internalBinding('cares_wrap'); const IANA_DNS_PORT = 53; const IPv6RE = /^\[([^[\]]*)\]/; const addrSplitRE = /(^.+?)(?::(\d+))?$/; |