(bigint, name)
| 572 | } |
| 573 | |
| 574 | function unsignedBigIntToBuffer(bigint, name) { |
| 575 | if (bigint < 0) { |
| 576 | throw new ERR_OUT_OF_RANGE(name, '>= 0', bigint); |
| 577 | } |
| 578 | |
| 579 | const hex = BigIntPrototypeToString(bigint, 16); |
| 580 | const padded = StringPrototypePadStart(hex, hex.length + (hex.length % 2), 0); |
| 581 | return Buffer.from(padded, 'hex'); |
| 582 | } |
| 583 | |
| 584 | function checkPrime(candidate, options = kEmptyObject, callback) { |
| 585 | if (typeof candidate === 'bigint') |
no test coverage detected
searching dependent graphs…