| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -211,12 +211,14 @@ generatePrime( | |||
| 211 | 211 | code: 'ERR_OUT_OF_RANGE' | |
| 212 | 212 | }); | |
| 213 | 213 | ||
| 214 | - // This is possible and allowed (but makes little sense). | ||
| 215 | - assert.strictEqual(generatePrimeSync(4, { | ||
| 216 | - add: 15n, | ||
| 217 | - rem: 13n, | ||
| 218 | - bigint: true | ||
| 219 | - }), 13n); | ||
| 214 | + if (process.versions.openssl >= '1.1.1f') { | ||
| 215 | + // This is possible and allowed (but makes little sense). | ||
| 216 | + assert.strictEqual(generatePrimeSync(4, { | ||
| 217 | + add: 15n, | ||
| 218 | + rem: 13n, | ||
| 219 | + bigint: true | ||
| 220 | + }), 13n); | ||
| 221 | + } | ||
| 220 | 222 | } | |
| 221 | 223 | ||
| 222 | 224 | [1, 'hello', {}, []].forEach((i) => { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments