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

Function validateTimeout

lib/internal/dns/utils.js:47–53  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

45} = require('internal/v8/startup_snapshot');
46
47function validateTimeout(options) {
48 let { timeout = -1 } = { ...options };
49 validateInt32(timeout, 'options.timeout', -1);
50 // Coerce -0 to +0.
51 timeout += 0;
52 return timeout;
53}
54
55function validateMaxTimeout(options) {
56 let { maxTimeout = 0 } = { ...options };

Callers 1

constructorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…