projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ee86c6
)
Revert "dns: verify argument is valid function in resolve"
author
Fedor Indutny
<fedor.indutny@gmail.com>
Fri, 7 Feb 2014 22:15:29 +0000
(
02:15
+0400)
committer
Fedor Indutny
<fedor.indutny@gmail.com>
Fri, 7 Feb 2014 22:15:29 +0000
(
02:15
+0400)
This reverts commit
2ee86c624ecd6b9dbaad10989143325fc64778cd
.
lib/dns.js
patch
|
blob
|
history
diff --git
a/lib/dns.js
b/lib/dns.js
index
dcf2128
..
15ee6a4
100644
(file)
--- a/
lib/dns.js
+++ b/
lib/dns.js
@@
-184,11
+184,9
@@
exports.resolve = function(domain, type_, callback_) {
if (typeof type_ == 'string') {
resolver = resolveMap[type_];
callback = callback_;
- } else
if (util.isFunction(type_))
{
+ } else {
resolver = exports.resolve4;
callback = type_;
- } else {
- throw new Error('Type must be a string')
}
if (typeof resolver === 'function') {