summaryrefslogtreecommitdiff
path: root/lib/dns.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-07-26 14:38:08 -0700
committerisaacs <i@izs.me>2013-08-01 15:08:01 -0700
commit22c68fdc1dae40f0ed9c71a02f66e5b2c6353691 (patch)
treeb6d14cad6f5a9ba78172f77c5c2ec10b8a6cb89c /lib/dns.js
parent9a29aa8c552eb2b120c101c1cfd66ba565a17ed5 (diff)
downloadnodejs-22c68fdc1dae40f0ed9c71a02f66e5b2c6353691.tar.gz
nodejs-22c68fdc1dae40f0ed9c71a02f66e5b2c6353691.tar.bz2
nodejs-22c68fdc1dae40f0ed9c71a02f66e5b2c6353691.zip
src: Replace macros with util functions
Diffstat (limited to 'lib/dns.js')
-rw-r--r--lib/dns.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dns.js b/lib/dns.js
index e92b180e9..8e6ed5c06 100644
--- a/lib/dns.js
+++ b/lib/dns.js
@@ -61,7 +61,7 @@ function errnoException(err, syscall) {
// callback.immediately = true;
// }
function makeAsync(callback) {
- if (!IS_FUNCTION(callback)) {
+ if (!util.isFunction(callback)) {
return callback;
}
return function asyncCallback() {
@@ -178,7 +178,7 @@ exports.reverse = resolveMap.PTR = resolver('getHostByAddr');
exports.resolve = function(domain, type_, callback_) {
var resolver, callback;
- if (IS_STRING(type_)) {
+ if (util.isString(type_)) {
resolver = resolveMap[type_];
callback = callback_;
} else {
@@ -186,7 +186,7 @@ exports.resolve = function(domain, type_, callback_) {
callback = type_;
}
- if (IS_FUNCTION(resolver)) {
+ if (util.isFunction(resolver)) {
return resolver(domain, callback);
} else {
throw new Error('Unknown type "' + type_ + '"');