summaryrefslogtreecommitdiff
path: root/lib/dns.js
diff options
context:
space:
mode:
authorMiguel Angel Asencio Hurtado <maasencioh@gmail.com>2016-10-12 09:50:00 +0200
committerJames M Snell <jasnell@gmail.com>2016-10-17 09:16:05 -0700
commit115bb04c0113907e625ee21b8b5b1a5625c6074c (patch)
treeb1b96e0dc337a0157218561a80a975c93f6068bc /lib/dns.js
parent7f02fecab1465385f92213248bddc3f65b177e2e (diff)
downloadandroid-node-v8-115bb04c0113907e625ee21b8b5b1a5625c6074c.tar.gz
android-node-v8-115bb04c0113907e625ee21b8b5b1a5625c6074c.tar.bz2
android-node-v8-115bb04c0113907e625ee21b8b5b1a5625c6074c.zip
dns: name anonymous functions
Ref: https://github.com/nodejs/node/issues/8913 PR-URL: https://github.com/nodejs/node/pull/9052 Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'lib/dns.js')
-rw-r--r--lib/dns.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/dns.js b/lib/dns.js
index a993593810..4767acbab6 100644
--- a/lib/dns.js
+++ b/lib/dns.js
@@ -181,7 +181,7 @@ function onlookupservice(err, host, service) {
// lookupService(address, port, callback)
-exports.lookupService = function(host, port, callback) {
+exports.lookupService = function lookupService(host, port, callback) {
if (arguments.length !== 3)
throw new Error('Invalid arguments');
@@ -257,7 +257,7 @@ exports.resolveSoa = resolveMap.SOA = resolver('querySoa');
exports.reverse = resolver('getHostByAddr');
-exports.resolve = function(hostname, type_, callback_) {
+exports.resolve = function resolve(hostname, type_, callback_) {
var resolver, callback;
if (typeof type_ === 'string') {
resolver = resolveMap[type_];
@@ -277,12 +277,12 @@ exports.resolve = function(hostname, type_, callback_) {
};
-exports.getServers = function() {
+exports.getServers = function getServers() {
return cares.getServers();
};
-exports.setServers = function(servers) {
+exports.setServers = function setServers(servers) {
// cache the original servers because in the event of an error setting the
// servers cares won't have any servers available for resolution
const orig = cares.getServers();