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

Method constructor

lib/internal/dns/utils.js:78–88  ·  view source on GitHub ↗
(options = undefined)

Source from the content-addressed store, hash-verified

76
77class ResolverBase {
78 constructor(options = undefined) {
79 const timeout = validateTimeout(options);
80 const tries = validateTries(options);
81 const maxTimeout = validateMaxTimeout(options);
82 // If we are building snapshot, save the states of the resolver along
83 // the way.
84 if (isBuildingSnapshot()) {
85 this[kSnapshotStates] = { timeout, tries, maxTimeout };
86 }
87 this[kInitializeHandle](timeout, tries, maxTimeout);
88 }
89
90 [kInitializeHandle](timeout, tries, maxTimeout) {
91 const { ChannelWrap } = lazyBinding();

Callers

nothing calls this directly

Calls 4

validateTriesFunction · 0.85
validateMaxTimeoutFunction · 0.85
isBuildingSnapshotFunction · 0.85
validateTimeoutFunction · 0.70

Tested by

no test coverage detected