MCPcopy Index your code
hub / github.com/nodejs/node / validateHints

Function validateHints

lib/internal/dns/utils.js:277–282  ·  view source on GitHub ↗
(hints)

Source from the content-addressed store, hash-verified

275}
276
277function validateHints(hints) {
278 const { AI_ADDRCONFIG, AI_ALL, AI_V4MAPPED } = lazyBinding();
279 if ((hints & ~(AI_ADDRCONFIG | AI_ALL | AI_V4MAPPED)) !== 0) {
280 throw new ERR_INVALID_ARG_VALUE('hints', hints);
281 }
282}
283
284function setDefaultResultOrder(value) {
285 validateOneOf(value, 'dnsOrder', validDnsOrders);

Callers 2

lookupFunction · 0.85
lookupFunction · 0.85

Calls 1

lazyBindingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…