node/lib/internal/crypto
Ruben Bridgewater 16aeddda24
lib: switch to Number.isNaN
Number.isNaN is now as fast as `val !== val`. Switch to the more
readable version. Also switch all `isNaN` to `Number.isNaN`.

PR-URL: https://github.com/nodejs/node/pull/18744
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2018-02-21 14:20:28 -05:00
..
certificate.js crypto: migrate Certificate to internal/errors 2017-10-15 15:34:06 -07:00
cipher.js crypto: refactor the crypto module 2017-09-18 08:10:59 -07:00
diffiehellman.js lib: faster type checks for some types 2017-10-01 23:58:59 -03:00
hash.js lib: faster type checks for some types 2017-10-01 23:58:59 -03:00
pbkdf2.js crypto: refactor argument validation for pbkdf2 2017-10-23 15:52:11 -07:00
random.js lib: switch to Number.isNaN 2018-02-21 14:20:28 -05:00
sig.js crypto: migrate crypto sign to internal/errors 2017-10-23 20:54:39 -07:00
util.js crypto: migrate timingSafeEqual to internal/errors 2017-10-26 07:47:16 -07:00