node/lib/internal/crypto
Ruben Bridgewater 96c57fbfaa
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-16 18:09:56 +01:00
..
certificate.js crypto: migrate Certificate to internal/errors 2017-10-15 15:34:06 -07:00
cipher.js crypto: allow passing null as IV unless required 2018-02-10 15:58:46 +01:00
diffiehellman.js crypto: better docs for cases where peer's public key is invalid 2017-12-01 21:18:11 +01:00
hash.js lib: faster type checks for some types 2017-10-01 23:58:59 -03:00
pbkdf2.js lib: combine similar error codes 2017-12-24 14:09:29 +08:00
random.js lib: switch to Number.isNaN 2018-02-16 18:09:56 +01: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