Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix linting
  • Loading branch information
santigimeno committed Jan 18, 2019
commit 79a2772fc197d2da8e8a72199da4e1e07072af13
2 changes: 1 addition & 1 deletion lib/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function resolver(bindingName) {
try {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be needed if we were only using the ICU based toASCII?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess is no

name = toASCII(name, true);
} catch {
// if using the punycode implementation, be lenient too
// If using the punycode implementation, be lenient too
}
var req = new QueryReqWrap();
req.bindingName = bindingName;
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/dns/promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function createResolverPromise(resolver, bindingName, hostname, ttl) {
try {
hostname = toASCII(hostname, true);
} catch {
// if using the punycode implementation, be lenient too
// If using the punycode implementation, be lenient too
}
const err = resolver._handle[bindingName](req, hostname);

Expand Down