(name, options)
| 120 | } |
| 121 | |
| 122 | function 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 | |
| 133 | Sign.prototype.sign = function sign(privateKey, encoding) { |
| 134 | if (!privateKey) |
no outgoing calls
no test coverage detected