0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib/internal/crypto
cjihrig 3238232fc4
lib: rename validateSafeInteger to validateInteger
validateInteger() was renamed to validateSafeInteger() in
https://github.com/nodejs/node/pull/26572. However, this
function also works with unsafe integers. This commit restores
the old name, and adds some basic tests.

PR-URL: https://github.com/nodejs/node/pull/29184
Refs: https://github.com/nodejs/node/pull/26572
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2019-08-19 11:55:22 -04:00
..
certificate.js lib: consolidate arrayBufferView validation 2019-03-27 17:05:19 +01:00
cipher.js src: add error codes to errors thrown in C++ 2019-08-09 15:58:58 -07:00
diffiehellman.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
hash.js src: add error codes to errors thrown in C++ 2019-08-09 15:58:58 -07:00
keygen.js crypto: move _impl call out of handleError funct 2019-06-24 05:36:59 +02:00
keys.js crypto: fix KeyObject handle type error message 2019-05-30 15:37:02 +02:00
pbkdf2.js crypto: move _pbkdf2 call out of handleError funct 2019-06-24 05:36:55 +02:00
random.js crypto: move _randomBytes call out of handleError funct 2019-06-24 05:36:51 +02:00
scrypt.js lib: rename validateSafeInteger to validateInteger 2019-08-19 11:55:22 -04:00
sig.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
util.js crypto: remove legacy native handles 2019-04-04 16:45:41 +02:00