We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0abc20b commit 0be3c61Copy full SHA for 0be3c61
test/parallel/test-crypto-prime.js
@@ -41,7 +41,7 @@ const pCheckPrime = promisify(checkPrime);
41
});
42
43
44
-[-1, 0].forEach((i) => {
+[-1, 0, 2 ** 31, 2 ** 31 + 1, 2 ** 32 - 1, 2 ** 32].forEach((i) => {
45
assert.throws(() => generatePrime(i, common.mustNotCall()), {
46
code: 'ERR_OUT_OF_RANGE'
47
0 commit comments