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

Function getIntOption

lib/internal/crypto/sig.js:122–131  ·  view source on GitHub ↗
(name, options)

Source from the content-addressed store, hash-verified

120}
121
122function getIntOption(name, options) {
123 const value = options[name];
124 if (value !== undefined) {
125 if (value === value >> 0) {
126 return value;
127 }
128 throw new ERR_INVALID_ARG_VALUE(`options.${name}`, value);
129 }
130 return undefined;
131}
132
133Sign.prototype.sign = function sign(privateKey, encoding) {
134 if (!privateKey)

Callers 2

getPaddingFunction · 0.85
getSaltLengthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected