summaryrefslogtreecommitdiff
path: root/lib/dns.js
diff options
context:
space:
mode:
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_ + '"');