We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 732658e commit 0f5dabeCopy full SHA for 0f5dabe
lib/dns.js
@@ -254,7 +254,7 @@ class Resolver {
254
}
255
256
function resolver(bindingName) {
257
- return function query(name, /* options, */ callback) {
+ function query(name, /* options, */ callback) {
258
var options;
259
if (arguments.length > 2) {
260
options = callback;
@@ -277,7 +277,9 @@ function resolver(bindingName) {
277
var err = this._handle[bindingName](req, name);
278
if (err) throw errnoException(err, bindingName);
279
return req;
280
- };
+ }
281
+ Object.defineProperty(query, 'name', { value: bindingName });
282
+ return query;
283
284
285
var resolveMap = Object.create(null);
0 commit comments